mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 17:43:22 +00:00
31 lines
556 B
C
31 lines
556 B
C
![]() |
/*
|
||
|
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <AK/String.h>
|
||
|
#include <AK/Vector.h>
|
||
|
#include <LibIPC/Forward.h>
|
||
|
|
||
|
namespace Web::ContentSecurityPolicy::Directives {
|
||
|
|
||
|
struct SerializedDirective {
|
||
|
String name;
|
||
|
Vector<String> value;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
namespace IPC {
|
||
|
|
||
|
template<>
|
||
|
ErrorOr<void> encode(Encoder&, Web::ContentSecurityPolicy::Directives::SerializedDirective const&);
|
||
|
|
||
|
template<>
|
||
|
ErrorOr<Web::ContentSecurityPolicy::Directives::SerializedDirective> decode(Decoder&);
|
||
|
|
||
|
}
|