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

Unified Diff: content/browser/renderer_host/websocket_host.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
Index: content/browser/renderer_host/websocket_host.h
diff --git a/content/browser/renderer_host/websocket_host.h b/content/browser/renderer_host/websocket_host.h
index adbe3b9cf7e0095dc2cf01c79c611871878e8f69..3488ef06b522de65228c176045d349126273952b 100644
--- a/content/browser/renderer_host/websocket_host.h
+++ b/content/browser/renderer_host/websocket_host.h
@@ -18,6 +18,7 @@
#include "content/common/websocket.h"
class GURL;
+struct WebSocketHostMsg_AddChannelRequest_Params;
namespace url {
class Origin;
@@ -66,15 +67,13 @@ class CONTENT_EXPORT WebSocketHost {
// Handlers for each message type, dispatched by OnMessageReceived(), as
// defined in content/common/websocket_messages.h
- void OnAddChannelRequest(const GURL& socket_url,
- const std::vector<std::string>& requested_protocols,
- const url::Origin& origin,
- const std::string& user_agent_override,
- int render_frame_id);
+ void OnAddChannelRequest(
+ const WebSocketHostMsg_AddChannelRequest_Params& request);
void AddChannel(const GURL& socket_url,
const std::vector<std::string>& requested_protocols,
const url::Origin& origin,
+ const GURL& first_party_for_cookies,
const std::string& user_agent_override,
int render_frame_id);
« no previous file with comments | « content/browser/renderer_host/websocket_dispatcher_host_unittest.cc ('k') | content/browser/renderer_host/websocket_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698