Everywhere: Hoist the Libraries folder to the top-level

This commit is contained in:
Timothy Flynn 2024-11-09 12:25:08 -05:00 committed by Andreas Kling
commit 93712b24bf
Notes: github-actions[bot] 2024-11-10 11:51:52 +00:00
4547 changed files with 104 additions and 113 deletions

View file

@ -0,0 +1,44 @@
/*
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Optional.h>
#include <AK/String.h>
#include <AK/StringView.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-value
enum class EmbedderPolicyValue {
UnsafeNone,
RequireCorp,
Credentialless,
};
StringView embedder_policy_value_to_string(EmbedderPolicyValue);
Optional<EmbedderPolicyValue> embedder_policy_value_from_string(StringView);
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy
struct EmbedderPolicy {
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-value-2
// A value, which is an embedder policy value, initially "unsafe-none".
EmbedderPolicyValue value { EmbedderPolicyValue::UnsafeNone };
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-reporting-endpoint
// A reporting endpoint string, initially the empty string.
String reporting_endpoint;
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-report-only-value
// A report only value, which is an embedder policy value, initially "unsafe-none".
EmbedderPolicyValue report_only_value { EmbedderPolicyValue::UnsafeNone };
// https://html.spec.whatwg.org/multipage/browsers.html#embedder-policy-report-only-reporting-endpoint
// A report only reporting endpoint string, initially the empty string.
String report_only_reporting_endpoint;
};
}