Index: third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h |
index c5fb0dda47b94ba9668f714938041285eea1fe2f..befb135e1e7879e172cd8d1d36fb734bb31470b2 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h |
@@ -7,11 +7,13 @@ |
#include "bindings/core/v8/DOMWrapperWorld.h" |
#include "core/CoreExport.h" |
+#include "platform/feature_policy/FeaturePolicy.h" |
#include <v8.h> |
namespace blink { |
class ScriptState; |
+class LocalFrame; |
using InstallConditionalFeaturesFunction = void (*)(const WrapperTypeInfo*, |
const ScriptState*, |
@@ -34,6 +36,8 @@ CORE_EXPORT void installConditionalFeatures(const WrapperTypeInfo*, |
CORE_EXPORT InstallConditionalFeaturesFunction |
setInstallConditionalFeaturesFunction(InstallConditionalFeaturesFunction); |
+bool isFeatureEnabledInFrame(const FeaturePolicy::Feature*, const LocalFrame*); |
+ |
} // namespace blink |
#endif // ConditionalFeatures_h |