mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-20 02:40:27 +00:00
Instead of passing RequestServer and ImageDecoder socket FDs as command-line arguments to WebWorker, send them over the main IPC channel after launch. The worker-agent handoff now carries all three transport handles (worker, RequestServer, ImageDecoder) so the connection path matches WebContent.
11 lines
521 B
Text
11 lines
521 B
Text
#include <LibHTTP/Cookie/Cookie.h>
|
|
#include <LibIPC/TransportHandle.h>
|
|
#include <LibURL/URL.h>
|
|
#include <LibWeb/Bindings/AgentType.h>
|
|
|
|
endpoint WebWorkerClient {
|
|
did_close_worker() =|
|
|
did_fail_loading_worker_script() =|
|
|
did_request_cookie(URL::URL url, HTTP::Cookie::Source source) => (HTTP::Cookie::VersionedCookie cookie)
|
|
request_worker_agent(Web::Bindings::AgentType worker_type) => (IPC::TransportHandle handle, IPC::TransportHandle request_server_handle, IPC::TransportHandle image_decoder_handle)
|
|
}
|