1
Fork 0
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:
Andreas Kling 2020-05-05 23:57:35 +02:00
parent 76dd1e3284
commit b778e99c61

View file

@ -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);
};