#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "base/metrics/histogram_macros.h"
#include "services/network/public/cpp/web_sandbox_flags.h"
#include "third_party/blink/public/common/permissions_policy/document_policy.h"
#include "third_party/blink/public/common/permissions_policy/document_policy_features.h"
#include "third_party/blink/public/common/permissions_policy/permissions_policy.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy.mojom-blink.h"
#include "third_party/blink/public/mojom/permissions_policy/policy_value.mojom-blink.h"
#include "third_party/blink/public/mojom/security_context/insecure_request_policy.mojom-blink.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-shared.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/platform/weborigin/scheme_registry.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
namespace blink {
WTF::Vector<unsigned> SecurityContext::SerializeInsecureNavigationSet(
const InsecureNavigationsSet& set) { … }
SecurityContext::SecurityContext(ExecutionContext* execution_context)
: … { … }
SecurityContext::~SecurityContext() = default;
void SecurityContext::Trace(Visitor* visitor) const { … }
void SecurityContext::SetSecurityOrigin(
scoped_refptr<SecurityOrigin> security_origin) { … }
void SecurityContext::SetSecurityOriginForTesting(
scoped_refptr<SecurityOrigin> security_origin) { … }
bool SecurityContext::IsSandboxed(
network::mojom::blink::WebSandboxFlags mask) const { … }
void SecurityContext::SetSandboxFlags(
network::mojom::blink::WebSandboxFlags flags) { … }
void SecurityContext::SetPermissionsPolicy(
std::unique_ptr<PermissionsPolicy> permissions_policy) { … }
void SecurityContext::SetReportOnlyPermissionsPolicy(
std::unique_ptr<PermissionsPolicy> permissions_policy) { … }
void SecurityContext::SetDocumentPolicy(
std::unique_ptr<DocumentPolicy> policy) { … }
void SecurityContext::SetReportOnlyDocumentPolicy(
std::unique_ptr<DocumentPolicy> policy) { … }
SecurityContext::FeatureStatus SecurityContext::IsFeatureEnabled(
mojom::blink::PermissionsPolicyFeature feature) const { … }
bool SecurityContext::IsFeatureEnabled(
mojom::blink::DocumentPolicyFeature feature) const { … }
SecurityContext::FeatureStatus SecurityContext::IsFeatureEnabled(
mojom::blink::DocumentPolicyFeature feature,
PolicyValue threshold_value) const { … }
}