ResourceLoader.h 300 B

12345678910111213141516
  1. #pragma once
  2. #include <AK/Function.h>
  3. #include <AK/URL.h>
  4. #include <LibCore/CObject.h>
  5. class ResourceLoader : public CObject {
  6. C_OBJECT(ResourceLoader)
  7. public:
  8. static ResourceLoader& the();
  9. void load(const URL&, Function<void(const ByteBuffer&)>);
  10. private:
  11. ResourceLoader() {}
  12. };