2024-03-18 00:22:27 -03:00
|
|
|
#include <LibURL/URL.h>
|
2023-11-08 15:47:41 -03:00
|
|
|
#include <LibIPC/File.h>
|
2025-05-18 17:10:01 -03:00
|
|
|
#include <LibWeb/Bindings/AgentType.h>
|
|
|
|
|
#include <LibWeb/Bindings/WorkerPrototype.h>
|
2023-12-20 17:47:01 -03:00
|
|
|
#include <LibWeb/HTML/StructuredSerialize.h>
|
2024-03-05 13:42:10 -03:00
|
|
|
#include <LibWeb/HTML/Scripting/SerializedEnvironmentSettingsObject.h>
|
2023-11-08 15:47:41 -03:00
|
|
|
|
|
|
|
|
endpoint WebWorkerServer {
|
|
|
|
|
|
2025-05-18 17:10:01 -03:00
|
|
|
start_worker(URL::URL url,
|
|
|
|
|
Web::Bindings::WorkerType type,
|
|
|
|
|
Web::Bindings::RequestCredentials credentials,
|
|
|
|
|
String name,
|
2025-07-17 10:51:04 -03:00
|
|
|
Web::HTML::TransferDataEncoder message_port,
|
2025-05-18 17:10:01 -03:00
|
|
|
Web::HTML::SerializedEnvironmentSettingsObject outside_settings,
|
|
|
|
|
Web::Bindings::AgentType agent_type) =|
|
2023-11-08 15:47:41 -03:00
|
|
|
|
2024-07-09 06:00:06 -03:00
|
|
|
close_worker() =|
|
|
|
|
|
|
2023-11-08 15:47:41 -03:00
|
|
|
handle_file_return(i32 error, Optional<IPC::File> file, i32 request_id) =|
|
|
|
|
|
}
|