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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Nit. 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.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 162ed2080ccf73f4672db16266a662a6e40bfe41..fb6835216d3fb4c557d6d2a694aa3bc3eb2fcf35 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"
@@ -722,7 +723,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
void OnDidChangeName(const std::string& name, const std::string& unique_name);
void OnDidSetFeaturePolicyHeader(
const ParsedFeaturePolicyHeader& parsed_header);
- void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
+ void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header,
+ const std::vector<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