1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint

This will allow LibWeb (and other components) to request a connection to
be premade and cached, to make subsequent loads faster.
This commit is contained in:
Ali Mohammad Pur 2021-09-28 00:06:52 +03:30 committed by Andreas Kling
parent 6b2e4f896b
commit 3ec39fc62e
6 changed files with 54 additions and 0 deletions

View file

@ -34,6 +34,7 @@ private:
virtual Messages::RequestServer::StartRequestResponse start_request(String const&, URL const&, IPC::Dictionary const&, ByteBuffer const&) override;
virtual Messages::RequestServer::StopRequestResponse stop_request(i32) override;
virtual Messages::RequestServer::SetCertificateResponse set_certificate(i32, String const&, String const&) override;
virtual void ensure_connection(URL const& url, ::RequestServer::CacheLevel const& cache_level) override;
HashMap<i32, OwnPtr<Request>> m_requests;
};