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

Unified Diff: content/common/websocket_messages.h

Issue 2102993002: Fix WebSocket to set first party for cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update testRunner calls to setBlockThirdPartyCookies() Created 4 years, 5 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/child/websocket_bridge.cc ('k') | net/websockets/websocket_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/websocket_messages.h
diff --git a/content/common/websocket_messages.h b/content/common/websocket_messages.h
index 205435499435e339cc295dd4bebd7ecbfc8f4efc..ce250780b9c03f77238a22d8d79f084c82061a89 100644
--- a/content/common/websocket_messages.h
+++ b/content/common/websocket_messages.h
@@ -46,6 +46,15 @@
IPC_ENUM_TRAITS_MAX_VALUE(content::WebSocketMessageType,
content::WEB_SOCKET_MESSAGE_TYPE_LAST)
+IPC_STRUCT_BEGIN(WebSocketHostMsg_AddChannelRequest_Params)
+ IPC_STRUCT_MEMBER(GURL, socket_url)
+ IPC_STRUCT_MEMBER(std::vector<std::string>, requested_protocols)
+ IPC_STRUCT_MEMBER(url::Origin, origin)
+ IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
+ IPC_STRUCT_MEMBER(std::string, user_agent_override)
+ IPC_STRUCT_MEMBER(int, render_frame_id)
+IPC_STRUCT_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::WebSocketHandshakeRequest)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(headers)
@@ -67,12 +76,8 @@ IPC_STRUCT_TRAITS_END()
// Open new WebSocket connection to |socket_url|. |requested_protocols| is a
// list of tokens identifying sub-protocols the renderer would like to use, as
// described in RFC6455 "Subprotocols Using the WebSocket Protocol".
-IPC_MESSAGE_ROUTED5(WebSocketHostMsg_AddChannelRequest,
- GURL /* socket_url */,
- std::vector<std::string> /* requested_protocols */,
- url::Origin /* origin */,
- std::string /* user_agent_override */,
- int /* render_frame_id */)
+IPC_MESSAGE_ROUTED1(WebSocketHostMsg_AddChannelRequest,
+ WebSocketHostMsg_AddChannelRequest_Params)
// Send a complete binary WebSocket message consisting of the Blob identified by
// |uuid|. The message will be split into frames as necessary. |expected_size|
« no previous file with comments | « content/child/websocket_bridge.cc ('k') | net/websockets/websocket_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698