summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Loader/ResourceLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader/ResourceLoader.h')
-rw-r--r--Userland/Libraries/LibWeb/Loader/ResourceLoader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.h b/Userland/Libraries/LibWeb/Loader/ResourceLoader.h
index e311baddea..6475dbe3da 100644
--- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.h
+++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.h
@@ -27,7 +27,7 @@ namespace Web {
constexpr auto default_user_agent = "Mozilla/4.0 (SerenityOS; " CPU_STRING ") LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb";
class ResourceLoader : public Core::Object {
- C_OBJECT(ResourceLoader)
+ C_OBJECT_ABSTRACT(ResourceLoader)
public:
static ResourceLoader& the();
@@ -52,7 +52,9 @@ public:
void clear_cache();
private:
- ResourceLoader();
+ ResourceLoader(NonnullRefPtr<Protocol::RequestClient> protocol_client);
+ static ErrorOr<NonnullRefPtr<ResourceLoader>> try_create();
+
static bool is_port_blocked(int port);
int m_pending_loads { 0 };