#include "third_party/blink/renderer/core/permissions_policy/dom_feature_policy.h"
#include "third_party/blink/public/common/permissions_policy/origin_with_possible_wildcards.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy.mojom-blink.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/permissions_policy/permissions_policy_parser.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
namespace blink {
bool FeatureAvailable(const String& feature, ExecutionContext* ec) { … }
DOMFeaturePolicy::DOMFeaturePolicy(ExecutionContext* context)
: … { … }
bool DOMFeaturePolicy::allowsFeature(ScriptState* script_state,
const String& feature) const { … }
bool DOMFeaturePolicy::allowsFeature(ScriptState* script_state,
const String& feature,
const String& url) const { … }
Vector<String> DOMFeaturePolicy::features(ScriptState* script_state) const { … }
Vector<String> DOMFeaturePolicy::allowedFeatures(
ScriptState* script_state) const { … }
Vector<String> DOMFeaturePolicy::getAllowlistForFeature(
ScriptState* script_state,
const String& feature) const { … }
void DOMFeaturePolicy::AddWarningForUnrecognizedFeature(
const String& feature) const { … }
void DOMFeaturePolicy::Trace(Visitor* visitor) const { … }
}