mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
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.
This commit is contained in:
parent
76dd1e3284
commit
b778e99c61
1 changed files with 2 additions and 1 deletions
|
@ -48,12 +48,13 @@ public:
|
||||||
|
|
||||||
int pending_loads() const { return m_pending_loads; }
|
int pending_loads() const { return m_pending_loads; }
|
||||||
|
|
||||||
|
Protocol::Client& protocol_client() { return *m_protocol_client; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ResourceLoader();
|
ResourceLoader();
|
||||||
|
|
||||||
int m_pending_loads { 0 };
|
int m_pending_loads { 0 };
|
||||||
|
|
||||||
Protocol::Client& protocol_client() { return *m_protocol_client; }
|
|
||||||
RefPtr<Protocol::Client> m_protocol_client;
|
RefPtr<Protocol::Client> m_protocol_client;
|
||||||
bool is_port_blocked(int port);
|
bool is_port_blocked(int port);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue