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
commit b778e99c61
Notes: sideshowbarker 2024-07-19 06:56:38 +09:00

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