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

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: Fp2 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 d9b4dfc6517bace09b48abd1d03cd3b0bc5d375f..e18e6d1052be87851cb0e8fc523131c5cd8217e4 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -398,6 +398,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)
@@ -1012,7 +1018,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.
-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