| 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 ffe7e912d3a6aeb6985fd2bf7b44e0d090b95a79..bf1e8e5ffcf4664c5e57daf35406437eafc12fe4 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"
|
| @@ -668,6 +669,21 @@ 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) {
|
| + return true;
|
| + }
|
| + virtual void updateFeaturePolicyOrigin(WebFeaturePolicy* parentPolicy,
|
| + const WebSecurityOrigin&) {}
|
| +
|
| protected:
|
| Platform();
|
| virtual ~Platform() {}
|
|
|