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