mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
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:
19
Userland/Libraries/LibWeb/HTML/StructuredSerializeOptions.h
Normal file
19
Userland/Libraries/LibWeb/HTML/StructuredSerializeOptions.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Vector.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/web-messaging.html#structuredserializeoptions
|
||||
struct StructuredSerializeOptions {
|
||||
Vector<JS::Handle<JS::Object>> transfer;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user