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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 123 // The time Connect() was called. |
124 base::TimeTicks start_time_; | 124 base::TimeTicks start_time_; |
125 | 125 |
126 // The time the connect was started (after DNS finished). | |
127 base::TimeTicks connect_start_time_; | |
128 | |
129 scoped_ptr<StreamSocket> transport_socket_; | 126 scoped_ptr<StreamSocket> transport_socket_; |
130 | 127 |
131 scoped_ptr<StreamSocket> fallback_transport_socket_; | 128 scoped_ptr<StreamSocket> fallback_transport_socket_; |
132 scoped_ptr<AddressList> fallback_addresses_; | 129 scoped_ptr<AddressList> fallback_addresses_; |
133 base::TimeTicks fallback_connect_start_time_; | 130 base::TimeTicks fallback_connect_start_time_; |
134 base::OneShotTimer<TransportConnectJob> fallback_timer_; | 131 base::OneShotTimer<TransportConnectJob> fallback_timer_; |
135 | 132 |
136 DISALLOW_COPY_AND_ASSIGN(TransportConnectJob); | 133 DISALLOW_COPY_AND_ASSIGN(TransportConnectJob); |
137 }; | 134 }; |
138 | 135 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 215 |
219 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 216 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
220 }; | 217 }; |
221 | 218 |
222 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 219 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
223 TransportSocketParams); | 220 TransportSocketParams); |
224 | 221 |
225 } // namespace net | 222 } // namespace net |
226 | 223 |
227 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 224 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |