mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:38:13 +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; }
|
||||
|
||||
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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue