ladybird/Libraries/LibHTML/ResourceLoader.h
Andreas Kling 3be6d1aff0 LibHTML: Add ResourceLoader to support protocol-agnostic URL loading
We now support loading both file:// and http:// URLs. Feel free to
visit http://www.serenityos.org/ and enjoy the fancy good times. :^)
2019-10-08 19:37:15 +02:00

14 lines
225 B
C++

#pragma once
#include <AK/Function.h>
#include <AK/URL.h>
class ResourceLoader {
public:
static ResourceLoader& the();
void load(const URL&, Function<void(const ByteBuffer&)>);
private:
ResourceLoader() {}
};