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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Temporary re-add the parser + transmit parsed CSP over IPC. Created 3 years, 11 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 d900dfdcb4541ff363720aad4632323577677753..13e9f5024feb50047d4be711100200ccd688e355 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/csp_policy.h"
#include "content/common/frame_messages.h"
#include "content/common/frame_owner_properties.h"
#include "content/common/input_messages.h"
@@ -1775,8 +1776,9 @@ void RenderFrameHostImpl::OnDidSetFeaturePolicyHeader(
}
void RenderFrameHostImpl::OnDidAddContentSecurityPolicy(
- const ContentSecurityPolicyHeader& header) {
- frame_tree_node()->AddContentSecurityPolicy(header);
+ const ContentSecurityPolicyHeader& header,
+ const CSPPolicy& policy) {
+ frame_tree_node()->AddContentSecurityPolicy(header, policy);
}
void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy(

Powered by Google App Engine
This is Rietveld 408576698