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

Unified Diff: content/common/frame_messages.h

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/common/content_security_policy_header.cc ('k') | content/renderer/content_security_policy_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index 1d377752a516884b857e2b724e571c3329e3cd4a..f2b13b701c9f9351cdbd845d418c3f11b4716579 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -570,11 +570,9 @@ IPC_STRUCT_TRAITS_BEGIN(content::CSPDirective)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicy)
- IPC_STRUCT_TRAITS_MEMBER(disposition)
- IPC_STRUCT_TRAITS_MEMBER(source)
+ IPC_STRUCT_TRAITS_MEMBER(header)
IPC_STRUCT_TRAITS_MEMBER(directives)
IPC_STRUCT_TRAITS_MEMBER(report_endpoints)
- IPC_STRUCT_TRAITS_MEMBER(header)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader)
@@ -823,8 +821,8 @@ IPC_MESSAGE_ROUTED2(FrameMsg_DidUpdateName,
std::string /* unique_name */)
// Updates replicated ContentSecurityPolicy in a frame proxy.
-IPC_MESSAGE_ROUTED1(FrameMsg_AddContentSecurityPolicy,
- content::ContentSecurityPolicyHeader)
+IPC_MESSAGE_ROUTED1(FrameMsg_AddContentSecurityPolicies,
+ std::vector<content::ContentSecurityPolicyHeader>)
// Resets ContentSecurityPolicy in a frame proxy / in RemoteSecurityContext.
IPC_MESSAGE_ROUTED0(FrameMsg_ResetContentSecurityPolicy)
@@ -1109,9 +1107,8 @@ IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader,
// headers and/or policies that might have been inherited from the parent frame)
// or when a new policy has been discovered afterwards (i.e. found in a
// dynamically added or a static <meta> element).
-IPC_MESSAGE_ROUTED2(FrameHostMsg_DidAddContentSecurityPolicy,
- content::ContentSecurityPolicyHeader,
- std::vector<content::ContentSecurityPolicy>)
+IPC_MESSAGE_ROUTED1(FrameHostMsg_DidAddContentSecurityPolicies,
+ std::vector<content::ContentSecurityPolicy> /* policies */)
// Sent when the frame starts enforcing an insecure request policy. Sending
// this information in DidCommitProvisionalLoad isn't sufficient; this
« no previous file with comments | « content/common/content_security_policy_header.cc ('k') | content/renderer/content_security_policy_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698