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

Unified Diff: third_party/WebKit/public/web/WebFrameOwnerProperties.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 | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameOwnerProperties.h
diff --git a/third_party/WebKit/public/web/WebFrameOwnerProperties.h b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
index 077e20d0adfc5a73821aa41b06057ad857624663..5ba8d741452c0cd03e6bcd0a8fc674957c44ba90 100644
--- a/third_party/WebKit/public/web/WebFrameOwnerProperties.h
+++ b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
@@ -5,6 +5,7 @@
#ifndef WebFrameOwnerProperties_h
#define WebFrameOwnerProperties_h
+#include "../platform/WebFeaturePolicy.h"
#include "../platform/WebString.h"
#include "../platform/WebVector.h"
#include "third_party/WebKit/public/platform/modules/permissions/permission.mojom-shared.h"
@@ -25,6 +26,9 @@ struct WebFrameOwnerProperties {
WebString requiredCsp;
WebVector<mojom::PermissionName> delegatedPermissions;
+ public:
+ WebVector<WebFeaturePolicyFeature> allowedFeatures;
+
WebFrameOwnerProperties()
: scrollingMode(ScrollingMode::Auto),
marginWidth(-1),
@@ -41,7 +45,8 @@ struct WebFrameOwnerProperties {
bool allowFullscreen,
bool allowPaymentRequest,
const WebString& requiredCsp,
- const WebVector<mojom::PermissionName>& delegatedPermissions)
+ const WebVector<mojom::PermissionName>& delegatedPermissions,
+ const WebVector<WebFeaturePolicyFeature>& allowedFeatures)
: name(name),
scrollingMode(static_cast<ScrollingMode>(scrollingMode)),
marginWidth(marginWidth),
@@ -49,7 +54,8 @@ struct WebFrameOwnerProperties {
allowFullscreen(allowFullscreen),
allowPaymentRequest(allowPaymentRequest),
requiredCsp(requiredCsp),
- delegatedPermissions(delegatedPermissions) {}
+ delegatedPermissions(delegatedPermissions),
+ allowedFeatures(allowedFeatures) {}
#endif
};
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698