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

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

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.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index eb809c414d4fa0186b1a930643f4e0f6560174de..b0987db318f258f2cacb46655f5d42acb736642f 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -30,6 +30,7 @@
#include "content/common/accessibility_mode_enums.h"
#include "content/common/ax_content_node_data.h"
#include "content/common/content_export.h"
+#include "content/common/content_security_policy/csp_policy.h"
#include "content/common/download/mhtml_save_status.h"
#include "content/common/frame.mojom.h"
#include "content/common/frame_message_enums.h"
@@ -702,7 +703,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
void OnDidChangeOpener(int32_t opener_routing_id);
void OnDidChangeName(const std::string& name, const std::string& unique_name);
void OnDidSetFeaturePolicyHeader(const ParsedFeaturePolicy& parsed_header);
- void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
+ void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header,
+ const CSPPolicy& policy);
void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin);
void OnDidChangeSandboxFlags(int32_t frame_routing_id,

Powered by Google App Engine
This is Rietveld 408576698