mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
44
Libraries/LibWeb/HTML/EmbedderPolicy.h
Normal file
44
Libraries/LibWeb/HTML/EmbedderPolicy.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue