Index: third_party/WebKit/public/platform/Platform.h |
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h |
index d623c5a5d6fa57cb244877de947a0c4d7fd83b0a..4c35016aac598c0d72baba0dc048ea2657ccf8da 100644 |
--- a/third_party/WebKit/public/platform/Platform.h |
+++ b/third_party/WebKit/public/platform/Platform.h |
@@ -41,6 +41,7 @@ |
#include "WebCommon.h" |
#include "WebData.h" |
#include "WebDeviceLightListener.h" |
+#include "WebFeaturePolicy.h" |
#include "WebGamepadListener.h" |
#include "WebGamepads.h" |
#include "WebGestureDevice.h" |
@@ -669,6 +670,20 @@ class BLINK_PLATFORM_EXPORT Platform { |
virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } |
+ // Feature Policy ----------------------------------------------------- |
+ |
+ virtual WebFeaturePolicy* createFeaturePolicy( |
+ const WebFeaturePolicy* parentPolicy, |
+ const WebParsedFeaturePolicyHeader& policyHeader, |
+ const WebSecurityOrigin&) { |
+ return nullptr; |
+ } |
+ virtual bool isFeatureEnabledByPolicy(const WebFeaturePolicy*, |
+ WebFeaturePolicyFeature, |
+ const WebSecurityOrigin&) { |
+ return true; |
+ } |
+ |
protected: |
Platform(); |
virtual ~Platform() {} |