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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOwner.h

Issue 2697713003: Initial Implementation of Iframe Attribute for Feature Policy (Part 2) (Closed)
Patch Set: Update rebase Created 3 years, 10 months 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 | « content/test/data/allowed_frames.html ('k') | third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/test/data/allowed_frames.html ('k') | third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698