summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-05 23:57:35 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-05 23:57:35 +0200
commitb778e99c613afff6c403f647f82ae2900062b684 (patch)
tree8a3676ce51b6f621650255e45d548244cbf01997
parent76dd1e32847bf471aaa5a60c4ce48e868ef61138 (diff)
downloadserenity-b778e99c613afff6c403f647f82ae2900062b684.zip
LibWeb: Expose the ProtocolClient inside ResourceLoader as an API
This allows others to reuse the existing connection to ProtocolServer instead of creating a separate one.
-rw-r--r--Libraries/LibWeb/ResourceLoader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/ResourceLoader.h b/Libraries/LibWeb/ResourceLoader.h
index 44c849ab9a..74f9e2426e 100644
--- a/Libraries/LibWeb/ResourceLoader.h
+++ b/Libraries/LibWeb/ResourceLoader.h
@@ -48,12 +48,13 @@ public:
int pending_loads() const { return m_pending_loads; }
+ Protocol::Client& protocol_client() { return *m_protocol_client; }
+
private:
ResourceLoader();
int m_pending_loads { 0 };
- Protocol::Client& protocol_client() { return *m_protocol_client; }
RefPtr<Protocol::Client> m_protocol_client;
bool is_port_blocked(int port);
};