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

Side by Side Diff: content/child/websocket_bridge.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 unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/child/websocket_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ 5 #ifndef CONTENT_CHILD_WEBSOCKET_BRIDGE_H_
6 #define CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ 6 #define CONTENT_CHILD_WEBSOCKET_BRIDGE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string> 10 #include <string>
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 WebSocketBridge(); 28 WebSocketBridge();
29 29
30 // Handles an IPC message from the browser process. 30 // Handles an IPC message from the browser process.
31 bool OnMessageReceived(const IPC::Message& message); 31 bool OnMessageReceived(const IPC::Message& message);
32 32
33 // WebSocketHandle functions. 33 // WebSocketHandle functions.
34 void connect(const blink::WebURL& url, 34 void connect(const blink::WebURL& url,
35 const blink::WebVector<blink::WebString>& protocols, 35 const blink::WebVector<blink::WebString>& protocols,
36 const blink::WebSecurityOrigin& origin, 36 const blink::WebSecurityOrigin& origin,
37 const blink::WebURL& first_party_for_cookies,
37 const blink::WebString& user_agent_override, 38 const blink::WebString& user_agent_override,
38 blink::WebSocketHandleClient* client) override; 39 blink::WebSocketHandleClient* client) override;
39 void send(bool fin, 40 void send(bool fin,
40 WebSocketHandle::MessageType type, 41 WebSocketHandle::MessageType type,
41 const char* data, 42 const char* data,
42 size_t size) override; 43 size_t size) override;
43 void flowControl(int64_t quota) override; 44 void flowControl(int64_t quota) override;
44 void close(unsigned short code, const blink::WebString& reason) override; 45 void close(unsigned short code, const blink::WebString& reason) override;
45 46
46 void Disconnect(); 47 void Disconnect();
(...skipping 20 matching lines...) Expand all
67 int channel_id_; 68 int channel_id_;
68 int render_frame_id_; 69 int render_frame_id_;
69 blink::WebSocketHandleClient* client_; 70 blink::WebSocketHandleClient* client_;
70 71
71 static const int kInvalidChannelId = -1; 72 static const int kInvalidChannelId = -1;
72 }; 73 };
73 74
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_CHILD_WEBSOCKET_BRIDGE_H_ 77 #endif // CONTENT_CHILD_WEBSOCKET_BRIDGE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/child/websocket_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698