1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00

WebContent: Turn it into a MultiInstance service :^)

Port the WebContent service to the new MultiInstance mechanism that
Sergey added. This means that every new WebContentView gets its very
own segregated WebContent process.
This commit is contained in:
Andreas Kling 2020-06-21 21:22:10 +02:00
parent ed351c7493
commit 59537cf257
5 changed files with 10 additions and 17 deletions

View file

@ -62,9 +62,10 @@ const Web::Page& ClientConnection::page() const
return m_page_host->page();
}
OwnPtr<Messages::WebContentServer::GreetResponse> ClientConnection::handle(const Messages::WebContentServer::Greet&)
OwnPtr<Messages::WebContentServer::GreetResponse> ClientConnection::handle(const Messages::WebContentServer::Greet& message)
{
return make<Messages::WebContentServer::GreetResponse>(client_id());
set_client_pid(message.client_pid());
return make<Messages::WebContentServer::GreetResponse>(client_id(), getpid());
}
void ClientConnection::handle(const Messages::WebContentServer::UpdateSystemTheme& message)