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

Side by Side Diff: net/websockets/websocket_job.h

Issue 10843050: WebSocket over SPDY: handshake support for both of SPDY/2 and SPDY/3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for landing Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « net/websockets/websocket_handshake_handler_unittest.cc ('k') | net/websockets/websocket_job.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_JOB_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool started_to_send_handshake_request_; 131 bool started_to_send_handshake_request_;
132 size_t handshake_request_sent_; 132 size_t handshake_request_sent_;
133 133
134 std::vector<std::string> response_cookies_; 134 std::vector<std::string> response_cookies_;
135 size_t response_cookies_save_index_; 135 size_t response_cookies_save_index_;
136 136
137 std::deque<scoped_refptr<IOBufferWithSize> > send_buffer_queue_; 137 std::deque<scoped_refptr<IOBufferWithSize> > send_buffer_queue_;
138 scoped_refptr<DrainableIOBuffer> current_send_buffer_; 138 scoped_refptr<DrainableIOBuffer> current_send_buffer_;
139 std::vector<char> received_data_after_handshake_; 139 std::vector<char> received_data_after_handshake_;
140 140
141 int spdy_protocol_version_;
141 scoped_ptr<SpdyWebSocketStream> spdy_websocket_stream_; 142 scoped_ptr<SpdyWebSocketStream> spdy_websocket_stream_;
142 std::string challenge_; 143 std::string challenge_;
143 144
144 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_; 145 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_;
145 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_for_send_pending_; 146 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_for_send_pending_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); 148 DISALLOW_COPY_AND_ASSIGN(WebSocketJob);
148 }; 149 };
149 150
150 } // namespace 151 } // namespace
151 152
152 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 153 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_
OLDNEW
« no previous file with comments | « net/websockets/websocket_handshake_handler_unittest.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698