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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing comments from PS#6 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 07e81811e2940ce1fcaede68e3bae10d9f29c1de..b851cda3f08b859c42634d12029f4cfaeeddb81d 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -514,6 +514,7 @@ class CONTENT_EXPORT RenderFrameImpl
const blink::WebString& name,
const blink::WebString& fallback_name,
blink::WebSandboxFlags sandbox_flags,
+ const blink::WebParsedFeaturePolicy& container_policy,
const blink::WebFrameOwnerProperties& frame_owner_properties) override;
void DidChangeOpener(blink::WebFrame* frame) override;
void FrameDetached(blink::WebLocalFrame* frame, DetachType type) override;
@@ -524,8 +525,10 @@ class CONTENT_EXPORT RenderFrameImpl
blink::WebInsecureRequestPolicy policy) override;
void DidUpdateToUniqueOrigin(
bool is_potentially_trustworthy_unique_origin) override;
- void DidChangeSandboxFlags(blink::WebFrame* child_frame,
- blink::WebSandboxFlags flags) override;
+ void DidChangeFramePolicy(
+ blink::WebFrame* child_frame,
+ blink::WebSandboxFlags flags,
+ const blink::WebParsedFeaturePolicy& container_policy) override;
void DidSetFeaturePolicyHeader(
const blink::WebParsedFeaturePolicy& parsed_header) override;
void DidAddContentSecurityPolicies(
@@ -885,7 +888,9 @@ class CONTENT_EXPORT RenderFrameImpl
void OnSnapshotAccessibilityTree(int callback_id);
void OnExtractSmartClipData(uint32_t callback_id, const gfx::Rect& rect);
void OnUpdateOpener(int opener_routing_id);
- void OnDidUpdateSandboxFlags(blink::WebSandboxFlags flags);
+ void OnDidUpdateFramePolicy(
+ blink::WebSandboxFlags flags,
+ const ParsedFeaturePolicyHeader& container_policy);
void OnSetFrameOwnerProperties(
const FrameOwnerProperties& frame_owner_properties);
void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id);

Powered by Google App Engine
This is Rietveld 408576698