| 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_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // and ERR_IO_PENDING if it cannot immediately service the request. | 113 // and ERR_IO_PENDING if it cannot immediately service the request. |
| 114 // Otherwise, it returns a net error code. | 114 // Otherwise, it returns a net error code. |
| 115 virtual int ConnectInternal() OVERRIDE; | 115 virtual int ConnectInternal() OVERRIDE; |
| 116 | 116 |
| 117 scoped_refptr<TransportSocketParams> params_; | 117 scoped_refptr<TransportSocketParams> params_; |
| 118 ClientSocketFactory* const client_socket_factory_; | 118 ClientSocketFactory* const client_socket_factory_; |
| 119 SingleRequestHostResolver resolver_; | 119 SingleRequestHostResolver resolver_; |
| 120 AddressList addresses_; | 120 AddressList addresses_; |
| 121 State next_state_; | 121 State next_state_; |
| 122 | 122 |
| 123 // The time Connect() was called. | |
| 124 base::TimeTicks start_time_; | |
| 125 | |
| 126 // The time the connect was started (after DNS finished). | |
| 127 base::TimeTicks connect_start_time_; | |
| 128 | |
| 129 scoped_ptr<StreamSocket> transport_socket_; | 123 scoped_ptr<StreamSocket> transport_socket_; |
| 130 | 124 |
| 131 scoped_ptr<StreamSocket> fallback_transport_socket_; | 125 scoped_ptr<StreamSocket> fallback_transport_socket_; |
| 132 scoped_ptr<AddressList> fallback_addresses_; | 126 scoped_ptr<AddressList> fallback_addresses_; |
| 133 base::TimeTicks fallback_connect_start_time_; | 127 base::TimeTicks fallback_connect_start_time_; |
| 134 base::OneShotTimer<TransportConnectJob> fallback_timer_; | 128 base::OneShotTimer<TransportConnectJob> fallback_timer_; |
| 135 | 129 |
| 136 DISALLOW_COPY_AND_ASSIGN(TransportConnectJob); | 130 DISALLOW_COPY_AND_ASSIGN(TransportConnectJob); |
| 137 }; | 131 }; |
| 138 | 132 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 212 |
| 219 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 213 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
| 220 }; | 214 }; |
| 221 | 215 |
| 222 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 216 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
| 223 TransportSocketParams); | 217 TransportSocketParams); |
| 224 | 218 |
| 225 } // namespace net | 219 } // namespace net |
| 226 | 220 |
| 227 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 221 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |