| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |