diff --git a/Userland/Libraries/LibWeb/Forward.h b/Userland/Libraries/LibWeb/Forward.h index a6b81b6d31d..c6707ca033f 100644 --- a/Userland/Libraries/LibWeb/Forward.h +++ b/Userland/Libraries/LibWeb/Forward.h @@ -545,6 +545,7 @@ struct POSTResource; struct ScrollOptions; struct ScrollToOptions; struct SerializedFormData; +struct StructuredSerializeOptions; struct ToggleTaskTracker; struct TransferDataHolder; } diff --git a/Userland/Libraries/LibWeb/HTML/DedicatedWorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/DedicatedWorkerGlobalScope.cpp index 4b5ce18e2a9..213c4fee4b8 100644 --- a/Userland/Libraries/LibWeb/HTML/DedicatedWorkerGlobalScope.cpp +++ b/Userland/Libraries/LibWeb/HTML/DedicatedWorkerGlobalScope.cpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace Web::HTML { diff --git a/Userland/Libraries/LibWeb/HTML/MessagePort.cpp b/Userland/Libraries/LibWeb/HTML/MessagePort.cpp index fd64364cb6e..65fe991e853 100644 --- a/Userland/Libraries/LibWeb/HTML/MessagePort.cpp +++ b/Userland/Libraries/LibWeb/HTML/MessagePort.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include namespace Web::HTML { diff --git a/Userland/Libraries/LibWeb/HTML/MessagePort.h b/Userland/Libraries/LibWeb/HTML/MessagePort.h index 2f47ace9ad0..ebc5b0efa22 100644 --- a/Userland/Libraries/LibWeb/HTML/MessagePort.h +++ b/Userland/Libraries/LibWeb/HTML/MessagePort.h @@ -21,11 +21,6 @@ namespace Web::HTML { E(onmessage, HTML::EventNames::message) \ E(onmessageerror, HTML::EventNames::messageerror) -// https://html.spec.whatwg.org/multipage/web-messaging.html#structuredserializeoptions -struct StructuredSerializeOptions { - Vector> transfer; -}; - // https://html.spec.whatwg.org/multipage/web-messaging.html#message-ports class MessagePort final : public DOM::EventTarget , public Bindings::Transferable { diff --git a/Userland/Libraries/LibWeb/HTML/ServiceWorker.h b/Userland/Libraries/LibWeb/HTML/ServiceWorker.h index fab8fa1b736..9c8ed7f2bea 100644 --- a/Userland/Libraries/LibWeb/HTML/ServiceWorker.h +++ b/Userland/Libraries/LibWeb/HTML/ServiceWorker.h @@ -8,7 +8,6 @@ #include #include -#include #define ENUMERATE_SERVICE_WORKER_EVENT_HANDLERS(E) \ E(onstatechange, HTML::EventNames::statechange) \ diff --git a/Userland/Libraries/LibWeb/HTML/StructuredSerializeOptions.h b/Userland/Libraries/LibWeb/HTML/StructuredSerializeOptions.h new file mode 100644 index 00000000000..7ea3b7db73f --- /dev/null +++ b/Userland/Libraries/LibWeb/HTML/StructuredSerializeOptions.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2024, Tim Flynn + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include +#include + +namespace Web::HTML { + +// https://html.spec.whatwg.org/multipage/web-messaging.html#structuredserializeoptions +struct StructuredSerializeOptions { + Vector> transfer; +}; + +} diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp index a6c7b434ce9..0f0b9f7acc9 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.cpp +++ b/Userland/Libraries/LibWeb/HTML/Window.cpp @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/Window.h b/Userland/Libraries/LibWeb/HTML/Window.h index 3c3aba1fee0..ad1d4c28ac4 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.h +++ b/Userland/Libraries/LibWeb/HTML/Window.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp index a340de4fd95..afaee045208 100644 --- a/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp +++ b/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.h b/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.h index 5aa68db9e95..8005c2ec9f7 100644 --- a/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.h +++ b/Userland/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.h @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp index 495d53b98fc..0ab93578a32 100644 --- a/Userland/Libraries/LibWeb/HTML/Worker.cpp +++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp @@ -5,14 +5,12 @@ */ #include -#include #include -#include #include +#include #include -#include +#include #include -#include namespace Web::HTML { diff --git a/Userland/Libraries/LibWeb/HTML/Worker.h b/Userland/Libraries/LibWeb/HTML/Worker.h index e67aa8da688..c66f6ac528d 100644 --- a/Userland/Libraries/LibWeb/HTML/Worker.h +++ b/Userland/Libraries/LibWeb/HTML/Worker.h @@ -6,20 +6,11 @@ #pragma once -#include -#include -#include #include #include -#include -#include -#include -#include -#include #include #include -#include -#include +#include #define ENUMERATE_WORKER_EVENT_HANDLERS(E) \ E(onmessage, HTML::EventNames::message) \ diff --git a/Userland/Libraries/LibWeb/HTML/WorkerAgent.cpp b/Userland/Libraries/LibWeb/HTML/WorkerAgent.cpp index c50acc54645..b418787e565 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerAgent.cpp +++ b/Userland/Libraries/LibWeb/HTML/WorkerAgent.cpp @@ -5,6 +5,7 @@ */ #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/HTML/WorkerAgent.h b/Userland/Libraries/LibWeb/HTML/WorkerAgent.h index d0f4bd8b68e..004b4739cc7 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerAgent.h +++ b/Userland/Libraries/LibWeb/HTML/WorkerAgent.h @@ -9,7 +9,6 @@ #include #include #include -#include #include namespace Web::HTML { diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp index 973454e7ef7..1e798c19783 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp +++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Services/WebWorker/DedicatedWorkerHost.cpp b/Userland/Services/WebWorker/DedicatedWorkerHost.cpp index 262b935c97a..1499b0be024 100644 --- a/Userland/Services/WebWorker/DedicatedWorkerHost.cpp +++ b/Userland/Services/WebWorker/DedicatedWorkerHost.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include