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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 scoped_ptr<StreamSocket> transport_socket_; | 179 scoped_ptr<StreamSocket> transport_socket_; |
180 | 180 |
181 scoped_ptr<StreamSocket> fallback_transport_socket_; | 181 scoped_ptr<StreamSocket> fallback_transport_socket_; |
182 scoped_ptr<AddressList> fallback_addresses_; | 182 scoped_ptr<AddressList> fallback_addresses_; |
183 base::TimeTicks fallback_connect_start_time_; | 183 base::TimeTicks fallback_connect_start_time_; |
184 base::OneShotTimer<TransportConnectJob> fallback_timer_; | 184 base::OneShotTimer<TransportConnectJob> fallback_timer_; |
185 | 185 |
186 // Track the interval between this connect and previous connect. | 186 // Track the interval between this connect and previous connect. |
187 ConnectInterval interval_between_connects_; | 187 ConnectInterval interval_between_connects_; |
188 | 188 |
| 189 // Group name for this job. |
| 190 std::string group_name_; |
| 191 |
189 DISALLOW_COPY_AND_ASSIGN(TransportConnectJob); | 192 DISALLOW_COPY_AND_ASSIGN(TransportConnectJob); |
190 }; | 193 }; |
191 | 194 |
192 class NET_EXPORT_PRIVATE TransportClientSocketPool : public ClientSocketPool { | 195 class NET_EXPORT_PRIVATE TransportClientSocketPool : public ClientSocketPool { |
193 public: | 196 public: |
194 typedef TransportSocketParams SocketParams; | 197 typedef TransportSocketParams SocketParams; |
195 | 198 |
196 TransportClientSocketPool( | 199 TransportClientSocketPool( |
197 int max_sockets, | 200 int max_sockets, |
198 int max_sockets_per_group, | 201 int max_sockets_per_group, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 break; | 336 break; |
334 } | 337 } |
335 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE); | 338 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE); |
336 | 339 |
337 return rv; | 340 return rv; |
338 } | 341 } |
339 | 342 |
340 } // namespace net | 343 } // namespace net |
341 | 344 |
342 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 345 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |