2023-11-19 10:42:11 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/String.h>
|
|
|
|
#include <LibIPC/Forward.h>
|
2025-07-01 20:55:11 -07:00
|
|
|
#include <LibWebView/Forward.h>
|
2023-11-19 10:42:11 -05:00
|
|
|
|
|
|
|
namespace WebView {
|
|
|
|
|
2025-07-01 20:55:11 -07:00
|
|
|
struct WEBVIEW_API Attribute {
|
2023-11-19 10:42:11 -05:00
|
|
|
String name;
|
|
|
|
String value;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace IPC {
|
|
|
|
|
|
|
|
template<>
|
2025-07-01 20:55:11 -07:00
|
|
|
WEBVIEW_API ErrorOr<void> encode(Encoder&, WebView::Attribute const&);
|
2023-11-19 10:42:11 -05:00
|
|
|
|
|
|
|
template<>
|
2025-07-01 20:55:11 -07:00
|
|
|
WEBVIEW_API ErrorOr<WebView::Attribute> decode(Decoder&);
|
2023-11-19 10:42:11 -05:00
|
|
|
|
|
|
|
}
|