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

Unified Diff: content/common/frame_messages.h

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… Created 4 years, 1 month 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/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index 844770fd059b3cc6d291f94c16ddbbe8e012ec8c..14ee5405b04f49d8fd0836f4b93822194bef0c50 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -399,6 +399,12 @@ IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams)
#endif
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::FeaturePolicyParsedWhitelist)
+ IPC_STRUCT_TRAITS_MEMBER(feature_name)
+ IPC_STRUCT_TRAITS_MEMBER(matches_all_origins)
+ IPC_STRUCT_TRAITS_MEMBER(origins)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState)
IPC_STRUCT_TRAITS_MEMBER(origin)
IPC_STRUCT_TRAITS_MEMBER(sandbox_flags)
@@ -1013,7 +1019,8 @@ IPC_MESSAGE_ROUTED2(FrameHostMsg_DidChangeName,
// Notifies the browser process that a non-empty Feature-Policy HTTP header was
// delivered with the document being loaded into the frame.
alexmos 2016/12/01 02:04:19 Might be worth explaining what the arg is now (a l
raymes 2016/12/01 03:03:09 Done.
-IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader, std::string)
+IPC_MESSAGE_ROUTED1(FrameHostMsg_DidSetFeaturePolicyHeader,
+ std::vector<content::FeaturePolicyParsedWhitelist>)
// Notifies the browser process about a new Content Security Policy that needs
// to be applies to the frame. This message is sent when a frame commits

Powered by Google App Engine
This is Rietveld 408576698