LibWebView+ImageDecoder+RequestServer+WebContent: Add init_transport

This commit is contained in:
stasoid 2025-01-03 21:19:46 +05:00 committed by Andrew Kaster
parent 652af318db
commit 3e46cb9067
Notes: github-actions[bot] 2025-02-13 11:46:18 +00:00
14 changed files with 52 additions and 0 deletions

View file

@ -70,6 +70,15 @@ void ConnectionFromClient::die()
Web::Platform::EventLoopPlugin::the().quit();
}
Messages::WebContentServer::InitTransportResponse ConnectionFromClient::init_transport([[maybe_unused]] int peer_pid)
{
#ifdef AK_OS_WINDOWS
m_transport.set_peer_pid(peer_pid);
return Core::System::getpid();
#endif
VERIFY_NOT_REACHED();
}
Optional<PageClient&> ConnectionFromClient::page(u64 index, SourceLocation location)
{
if (auto page = m_page_host->page(index); page.has_value())