| 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_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" |
| 14 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 15 #include "net/base/net_log.h" | 16 #include "net/base/net_log.h" |
| 16 #include "net/base/request_priority.h" | 17 #include "net/base/request_priority.h" |
| 17 #include "net/http/http_auth.h" | 18 #include "net/http/http_auth.h" |
| 18 #include "net/http/http_request_headers.h" | 19 #include "net/http/http_request_headers.h" |
| 19 #include "net/http/http_response_info.h" | 20 #include "net/http/http_response_info.h" |
| 20 #include "net/http/http_stream_factory.h" | 21 #include "net/http/http_stream_factory.h" |
| 21 #include "net/http/http_transaction.h" | 22 #include "net/http/http_transaction.h" |
| 22 #include "net/proxy/proxy_service.h" | 23 #include "net/proxy/proxy_service.h" |
| 23 #include "net/ssl/ssl_config_service.h" | 24 #include "net/ssl/ssl_config_service.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // read from the socket until the tunnel is done. | 333 // read from the socket until the tunnel is done. |
| 333 bool establishing_tunnel_; | 334 bool establishing_tunnel_; |
| 334 | 335 |
| 335 // The helper object to use to create WebSocketHandshakeStreamBase | 336 // The helper object to use to create WebSocketHandshakeStreamBase |
| 336 // objects. Only relevant when establishing a WebSocket connection. | 337 // objects. Only relevant when establishing a WebSocket connection. |
| 337 WebSocketHandshakeStreamBase::CreateHelper* | 338 WebSocketHandshakeStreamBase::CreateHelper* |
| 338 websocket_handshake_stream_base_create_helper_; | 339 websocket_handshake_stream_base_create_helper_; |
| 339 | 340 |
| 340 BeforeNetworkStartCallback before_network_start_callback_; | 341 BeforeNetworkStartCallback before_network_start_callback_; |
| 341 | 342 |
| 343 // How many times have we automatically retried this request after failing |
| 344 // with ERR_NETWORK_CHANGED. Retrying is only attempted when |
| 345 // ERR_NETWORK_CHANGED is received during host resolution or connecting |
| 346 // (i.e. before the request has been issued). This ensures request |
| 347 // side-effects are never duplicated. |
| 348 int num_automatic_retries_on_network_changes_; |
| 349 |
| 350 base::WeakPtrFactory<HttpNetworkTransaction> weak_factory_; |
| 351 |
| 342 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 352 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 343 }; | 353 }; |
| 344 | 354 |
| 345 } // namespace net | 355 } // namespace net |
| 346 | 356 |
| 347 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 357 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |