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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Add the TODO and bug ids that was forgotten. 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: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 6ddcabd7149de7f32f0ba92fd7f78b25e39b38d8..dc37d70fa1a319fa318cd42415df1a3586266418 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -59,6 +59,7 @@
#include "content/common/accessibility_messages.h"
#include "content/common/associated_interface_provider_impl.h"
#include "content/common/associated_interfaces.mojom.h"
+#include "content/common/content_security_policy/content_security_policy.h"
#include "content/common/frame_messages.h"
#include "content/common/frame_owner_properties.h"
#include "content/common/input_messages.h"
@@ -1841,8 +1842,9 @@ void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader(
}
void RenderFrameHostImpl::OnDidAddContentSecurityPolicy(
- const ContentSecurityPolicyHeader& header) {
- frame_tree_node()->AddContentSecurityPolicy(header);
+ const ContentSecurityPolicyHeader& header,
+ const std::vector<ContentSecurityPolicy>& policies) {
+ frame_tree_node()->AddContentSecurityPolicy(header, policies);
}
void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy(
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/shared_worker/shared_worker_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698