Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.h

Issue 2254533002: [FeaturePolicy] Initial implementation of Feature Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fp-flag
Patch Set: Addressing nits Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ea8544eccf4b7db47454457aea0f934868a9f21 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ConditionalFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698