#include "third_party/blink/public/web/web_security_policy.h"
#include "services/network/public/mojom/referrer_policy.mojom-blink.h"
#include "third_party/blink/public/common/scheme_registry.h"
#include "third_party/blink/public/platform/web_security_origin.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/renderer/core/loader/frame_loader.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/weborigin/security_policy.h"
namespace blink {
void WebSecurityPolicy::RegisterURLSchemeAsDisplayIsolated(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsAllowingServiceWorkers(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsAllowingWasmEvalCSP(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsSupportingFetchAPI(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsFirstPartyWhenTopLevel(
const WebString& scheme) { … }
void WebSecurityPolicy::
RegisterURLSchemeAsFirstPartyWhenTopLevelEmbeddingSecure(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsAllowingSharedArrayBuffers(
const WebString& scheme) { … }
void WebSecurityPolicy::AddOriginAccessAllowListEntry(
const WebURL& source_origin,
const WebString& destination_protocol,
const WebString& destination_host,
const uint16_t destination_port,
const network::mojom::CorsDomainMatchMode domain_match_mode,
const network::mojom::CorsPortMatchMode port_match_mode,
const network::mojom::CorsOriginAccessMatchPriority priority) { … }
void WebSecurityPolicy::AddOriginAccessBlockListEntry(
const WebURL& source_origin,
const WebString& destination_protocol,
const WebString& destination_host,
const uint16_t destination_port,
const network::mojom::CorsDomainMatchMode domain_match_mode,
const network::mojom::CorsPortMatchMode port_match_mode,
const network::mojom::CorsOriginAccessMatchPriority priority) { … }
void WebSecurityPolicy::ClearOriginAccessListForOrigin(
const WebURL& source_origin) { … }
void WebSecurityPolicy::ClearOriginAccessList() { … }
void WebSecurityPolicy::AddSchemeToSecureContextSafelist(
const WebString& scheme) { … }
WebString WebSecurityPolicy::GenerateReferrerHeader(
network::mojom::ReferrerPolicy referrer_policy,
const WebURL& url,
const WebString& referrer) { … }
void WebSecurityPolicy::RegisterURLSchemeAsNotAllowingJavascriptURLs(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsAllowedForReferrer(
const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsError(const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsExtension(const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsWebUI(const WebString& scheme) { … }
void WebSecurityPolicy::RegisterURLSchemeAsCodeCacheWithHashing(
const WebString& scheme) { … }
}