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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. Created 3 years, 9 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/renderer/render_frame_impl.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index dc90eb05a38d29ee362ee52ac159fedafd9d10ac..a279390b3ffad19fe2cf0875370269d5fa591249 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3253,22 +3253,14 @@ void RenderFrameImpl::didSetFeaturePolicyHeader(
routing_id_, FeaturePolicyHeaderFromWeb(parsed_header)));
}
-void RenderFrameImpl::didAddContentSecurityPolicy(
- const blink::WebString& header_value,
- blink::WebContentSecurityPolicyType type,
- blink::WebContentSecurityPolicySource source,
- const std::vector<blink::WebContentSecurityPolicy>& policies) {
- ContentSecurityPolicyHeader header;
- header.header_value = header_value.utf8();
- header.type = type;
- header.source = source;
-
+void RenderFrameImpl::didAddContentSecurityPolicies(
+ const blink::WebVector<blink::WebContentSecurityPolicy>& policies) {
std::vector<ContentSecurityPolicy> content_policies;
for (const auto& policy : policies)
content_policies.push_back(BuildContentSecurityPolicy(policy));
- Send(new FrameHostMsg_DidAddContentSecurityPolicy(routing_id_, header,
- content_policies));
+ Send(new FrameHostMsg_DidAddContentSecurityPolicies(routing_id_,
+ content_policies));
}
void RenderFrameImpl::didChangeFrameOwnerProperties(
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/render_frame_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698