LibWeb: Move StructuredSerializeOptions to its own header

This largely reduces the number of files needed to be compiled when we
change the MessagePort header.
This commit is contained in:
Timothy Flynn 2024-10-17 08:46:48 -04:00 committed by Tim Flynn
commit 32a22c49e3
Notes: github-actions[bot] 2024-10-17 20:35:59 +00:00
16 changed files with 31 additions and 22 deletions

View file

@ -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<JS::Handle<JS::Object>> transfer;
};
// https://html.spec.whatwg.org/multipage/web-messaging.html#message-ports
class MessagePort final : public DOM::EventTarget
, public Bindings::Transferable {