Serenity Operating System
1/*
2 * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <LibWeb/ReferrerPolicy/ReferrerPolicy.h>
10
11namespace Web::HTML {
12
13// https://html.spec.whatwg.org/multipage/origin.html#policy-container
14// A policy container is a struct containing policies that apply to a Document, a WorkerGlobalScope, or a WorkletGlobalScope. It has the following items:
15struct PolicyContainer {
16 // https://html.spec.whatwg.org/multipage/origin.html#policy-container-csp-list
17 // FIXME: A CSP list, which is a CSP list. It is initially empty.
18
19 // https://html.spec.whatwg.org/multipage/origin.html#policy-container-embedder-policy
20 // FIXME: An embedder policy, which is an embedder policy. It is initially a new embedder policy.
21
22 // https://html.spec.whatwg.org/multipage/origin.html#policy-container-referrer-policy
23 // A referrer policy, which is a referrer policy. It is initially the default referrer policy.
24 ReferrerPolicy::ReferrerPolicy referrer_policy { ReferrerPolicy::DEFAULT_REFERRER_POLICY };
25};
26
27}