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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 8 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 562a1970f039c66cb0c0390f9b528913cc15a421..650575ba011547e34fdb021edf100a9324692095 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -24,8 +24,10 @@ class RemoteFrameOwner final
public:
static RemoteFrameOwner* Create(
SandboxFlags flags,
+ const WebParsedFeaturePolicy& container_policy,
const WebFrameOwnerProperties& frame_owner_properties) {
- return new RemoteFrameOwner(flags, frame_owner_properties);
+ return new RemoteFrameOwner(flags, container_policy,
+ frame_owner_properties);
}
// FrameOwner overrides:
@@ -52,6 +54,9 @@ class RemoteFrameOwner final
const WebVector<WebFeaturePolicyFeature>& AllowedFeatures() const override {
return allowed_features_;
}
+ const WebParsedFeaturePolicy& ContainerPolicy() const override {
+ return container_policy_;
+ }
void SetBrowsingContextContainerName(const WebString& name) {
browsing_context_container_name_ = name;
@@ -73,11 +78,16 @@ class RemoteFrameOwner final
const WebVector<WebFeaturePolicyFeature>& allowed_features) {
allowed_features_ = allowed_features;
}
+ void SetContainerPolicy(const WebParsedFeaturePolicy& container_policy) {
+ container_policy_ = container_policy;
+ }
DECLARE_VIRTUAL_TRACE();
private:
- RemoteFrameOwner(SandboxFlags, const WebFrameOwnerProperties&);
+ RemoteFrameOwner(SandboxFlags,
+ const WebParsedFeaturePolicy&,
+ const WebFrameOwnerProperties&);
// Intentionally private to prevent redundant checks when the type is
// already HTMLFrameOwnerElement.
@@ -95,6 +105,7 @@ class RemoteFrameOwner final
bool is_display_none_;
WebString csp_;
WebVector<WebFeaturePolicyFeature> allowed_features_;
+ WebParsedFeaturePolicy container_policy_;
};
DEFINE_TYPE_CASTS(RemoteFrameOwner,
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | third_party/WebKit/Source/web/RemoteFrameOwner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698