LibWeb+WebWorker: Add IPC messages to request and communicate shutdown

This commit is contained in:
Andrew Kaster 2024-07-09 03:00:06 -06:00 committed by Andreas Kling
parent 5d8784318d
commit 27ef9ffa8f
Notes: sideshowbarker 2024-07-17 04:01:41 +09:00
6 changed files with 25 additions and 0 deletions

View file

@ -14,6 +14,12 @@ void WebWorkerClient::die()
// FIXME: Notify WorkerAgent that the worker is ded
}
void WebWorkerClient::did_close_worker()
{
if (on_worker_close)
on_worker_close();
}
WebWorkerClient::WebWorkerClient(NonnullOwnPtr<Core::LocalSocket> socket)
: IPC::ConnectionToServer<WebWorkerClientEndpoint, WebWorkerServerEndpoint>(*this, move(socket))
{