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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

Issue 2697713003: Initial Implementation of Iframe Attribute for Feature Policy (Part 2) (Closed)
Patch Set: Initial Impl 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
Index: third_party/WebKit/Source/web/RemoteFrameOwner.h
diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
index 4b553fd8e0a7bf78bec9c9691f8a2b3e8479a12c..1436e3ae2cc94aa9742d02cd0612cec27a7d00cb 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -52,6 +52,10 @@ class RemoteFrameOwner final
const override {
return m_delegatedPermissions;
}
+ const WebVector<WebFeaturePolicyFeature>& allowedFeatureNames()
+ const override {
+ return m_allowedFeatureNames;
+ }
void setBrowsingContextContainerName(const WebString& name) {
m_browsingContextContainerName = name;
@@ -70,6 +74,10 @@ class RemoteFrameOwner final
const WebVector<mojom::blink::PermissionName>& delegatedPermissions) {
m_delegatedPermissions = delegatedPermissions;
}
+ void setAllowedFeatureNames(
+ const WebVector<WebFeaturePolicyFeature>& allowedFeatureNames) {
+ m_allowedFeatureNames = allowedFeatureNames;
+ }
DECLARE_VIRTUAL_TRACE();
@@ -91,6 +99,7 @@ class RemoteFrameOwner final
bool m_allowPaymentRequest;
WebString m_csp;
WebVector<mojom::blink::PermissionName> m_delegatedPermissions;
+ WebVector<WebFeaturePolicyFeature> m_allowedFeatureNames;
};
DEFINE_TYPE_CASTS(RemoteFrameOwner,

Powered by Google App Engine
This is Rietveld 408576698