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
|
|
|
|
}
|
|
|
|
|
|
|
|
WebWorkerClient::WebWorkerClient(NonnullOwnPtr<Core::LocalSocket> socket)
|
|
|
|
: IPC::ConnectionToServer<WebWorkerClientEndpoint, WebWorkerServerEndpoint>(*this, move(socket))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-04-17 18:44:39 -06:00
|
|
|
IPC::File WebWorkerClient::dup_socket()
|
2024-01-06 13:13:59 -07:00
|
|
|
{
|
2024-04-17 18:44:39 -06:00
|
|
|
return MUST(IPC::File::clone_fd(socket().fd().value()));
|
2024-01-06 13:13:59 -07:00
|
|
|
}
|
|
|
|
|
2023-11-08 11:47:41 -07:00
|
|
|
}
|