| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SOCKET_STREAM_SOCKET_STREAM_H_ | 5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_H_ |
| 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ | 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 int tunnel_response_headers_capacity_; | 329 int tunnel_response_headers_capacity_; |
| 330 int tunnel_response_headers_len_; | 330 int tunnel_response_headers_len_; |
| 331 | 331 |
| 332 scoped_ptr<SingleRequestHostResolver> resolver_; | 332 scoped_ptr<SingleRequestHostResolver> resolver_; |
| 333 AddressList addresses_; | 333 AddressList addresses_; |
| 334 scoped_ptr<StreamSocket> socket_; | 334 scoped_ptr<StreamSocket> socket_; |
| 335 | 335 |
| 336 SSLConfig server_ssl_config_; | 336 SSLConfig server_ssl_config_; |
| 337 SSLConfig proxy_ssl_config_; | 337 SSLConfig proxy_ssl_config_; |
| 338 | 338 |
| 339 const CompletionCallback io_callback_; | 339 CompletionCallback io_callback_; |
| 340 OldCompletionCallbackImpl<SocketStream> io_callback_old_; | |
| 341 | 340 |
| 342 scoped_refptr<IOBuffer> read_buf_; | 341 scoped_refptr<IOBuffer> read_buf_; |
| 343 int read_buf_size_; | 342 int read_buf_size_; |
| 344 | 343 |
| 345 // Total amount of buffer (|write_buf_size_| - |write_buf_offset_| + | 344 // Total amount of buffer (|write_buf_size_| - |write_buf_offset_| + |
| 346 // sum of size of |pending_write_bufs_|) should not exceed | 345 // sum of size of |pending_write_bufs_|) should not exceed |
| 347 // |max_pending_send_allowed_|. | 346 // |max_pending_send_allowed_|. |
| 348 // |write_buf_| holds requested data and |current_write_buf_| is used | 347 // |write_buf_| holds requested data and |current_write_buf_| is used |
| 349 // for Write operation, that is, |current_write_buf_| is | 348 // for Write operation, that is, |current_write_buf_| is |
| 350 // |write_buf_| + |write_buf_offset_|. | 349 // |write_buf_| + |write_buf_offset_|. |
| 351 scoped_refptr<IOBuffer> write_buf_; | 350 scoped_refptr<IOBuffer> write_buf_; |
| 352 scoped_refptr<DrainableIOBuffer> current_write_buf_; | 351 scoped_refptr<DrainableIOBuffer> current_write_buf_; |
| 353 int write_buf_offset_; | 352 int write_buf_offset_; |
| 354 int write_buf_size_; | 353 int write_buf_size_; |
| 355 PendingDataQueue pending_write_bufs_; | 354 PendingDataQueue pending_write_bufs_; |
| 356 | 355 |
| 357 bool closing_; | 356 bool closing_; |
| 358 bool server_closed_; | 357 bool server_closed_; |
| 359 | 358 |
| 360 scoped_ptr<SocketStreamMetrics> metrics_; | 359 scoped_ptr<SocketStreamMetrics> metrics_; |
| 361 | 360 |
| 362 DISALLOW_COPY_AND_ASSIGN(SocketStream); | 361 DISALLOW_COPY_AND_ASSIGN(SocketStream); |
| 363 }; | 362 }; |
| 364 | 363 |
| 365 } // namespace net | 364 } // namespace net |
| 366 | 365 |
| 367 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_ | 366 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_ |
| OLD | NEW |