mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
committed by
Andreas Kling
parent
950e819ee7
commit
93712b24bf
38
Libraries/LibWeb/HTML/PolicyContainers.h
Normal file
38
Libraries/LibWeb/HTML/PolicyContainers.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibWeb/HTML/EmbedderPolicy.h>
|
||||
#include <LibWeb/ReferrerPolicy/ReferrerPolicy.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#policy-container
|
||||
// A policy container is a struct containing policies that apply to a Document, a WorkerGlobalScope, or a WorkletGlobalScope. It has the following items:
|
||||
struct PolicyContainer {
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#policy-container-csp-list
|
||||
// FIXME: A CSP list, which is a CSP list. It is initially empty.
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#policy-container-embedder-policy
|
||||
// An embedder policy, which is an embedder policy. It is initially a new embedder policy.
|
||||
EmbedderPolicy embedder_policy {};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/origin.html#policy-container-referrer-policy
|
||||
// A referrer policy, which is a referrer policy. It is initially the default referrer policy.
|
||||
ReferrerPolicy::ReferrerPolicy referrer_policy { ReferrerPolicy::DEFAULT_REFERRER_POLICY };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
template<>
|
||||
ErrorOr<void> encode(IPC::Encoder&, Web::HTML::PolicyContainer const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<Web::HTML::PolicyContainer> decode(IPC::Decoder&);
|
||||
}
|
||||
Reference in New Issue
Block a user