2023-11-08 11:47:41 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2024-01-06 13:13:59 -07:00
|
|
|
#include <LibCore/System.h>
|
2023-11-08 11:47:41 -07:00
|
|
|
#include <LibWeb/Worker/WebWorkerClient.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
void WebWorkerClient::die()
|
|
|
|
{
|
|
|
|
// FIXME: Notify WorkerAgent that the worker is ded
|
|
|
|
}
|
|
|
|
|
2024-07-09 03:00:06 -06:00
|
|
|
void WebWorkerClient::did_close_worker()
|
|
|
|
{
|
|
|
|
if (on_worker_close)
|
|
|
|
on_worker_close();
|
|
|
|
}
|
|
|
|
|
2024-10-22 15:47:33 -06:00
|
|
|
WebWorkerClient::WebWorkerClient(IPC::Transport transport)
|
|
|
|
: IPC::ConnectionToServer<WebWorkerClientEndpoint, WebWorkerServerEndpoint>(*this, move(transport))
|
2023-11-08 11:47:41 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-10-22 15:47:33 -06:00
|
|
|
IPC::File WebWorkerClient::clone_transport()
|
2024-01-06 13:13:59 -07:00
|
|
|
{
|
2024-10-22 15:47:33 -06:00
|
|
|
return MUST(m_transport.clone_for_transfer());
|
2024-01-06 13:13:59 -07:00
|
|
|
}
|
|
|
|
|
2023-11-08 11:47:41 -07:00
|
|
|
}
|