Index: third_party/WebKit/Source/core/frame/FrameOwner.h |
diff --git a/third_party/WebKit/Source/core/frame/FrameOwner.h b/third_party/WebKit/Source/core/frame/FrameOwner.h |
index 6a2a91401b5b39045c7bc04ffdacf2f0d4258622..cbc074117b88ae1749fc7fb69074f2298ed401d5 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h |
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h |
@@ -9,6 +9,7 @@ |
#include "core/dom/SandboxFlags.h" |
#include "platform/heap/Handle.h" |
#include "platform/scroll/ScrollTypes.h" |
+#include "public/platform/WebFeaturePolicy.h" |
#include "public/platform/WebVector.h" |
#include "public/platform/modules/permissions/permission.mojom-blink.h" |
@@ -51,6 +52,7 @@ class CORE_EXPORT FrameOwner : public GarbageCollectedMixin { |
virtual AtomicString csp() const = 0; |
virtual const WebVector<mojom::blink::PermissionName>& delegatedPermissions() |
const = 0; |
+ virtual const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const = 0; |
}; |
// TODO(dcheng): This class is an internal implementation detail of provisional |
@@ -89,6 +91,10 @@ class CORE_EXPORT DummyFrameOwner |
()); |
return permissions; |
} |
+ const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override { |
+ DEFINE_STATIC_LOCAL(WebVector<WebFeaturePolicyFeature>, features, ()); |
+ return features; |
+ } |
private: |
// Intentionally private to prevent redundant checks when the type is |