| 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 2cd733425ef79bd2439da87fd20289c818d43e03..99d224e4c0129678204b0938dc57f6712daca965 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"
|
| @@ -682,6 +683,22 @@ class BLINK_PLATFORM_EXPORT Platform {
|
| // depending on memory pressure.
|
| virtual void requestPurgeMemory() {}
|
|
|
| + // Feature Policy -----------------------------------------------------
|
| +
|
| + virtual WebFeaturePolicy* createFeaturePolicy(
|
| + const WebFeaturePolicy* parentPolicy,
|
| + const WebParsedFeaturePolicyHeader& containerPolicy,
|
| + 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() {}
|
|
|