| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 host_resolver_(host_resolver), | 200 host_resolver_(host_resolver), |
| 201 net_log_(net_log) {} | 201 net_log_(net_log) {} |
| 202 | 202 |
| 203 virtual ~TransportConnectJobFactory() {} | 203 virtual ~TransportConnectJobFactory() {} |
| 204 | 204 |
| 205 // ClientSocketPoolBase::ConnectJobFactory methods. | 205 // ClientSocketPoolBase::ConnectJobFactory methods. |
| 206 | 206 |
| 207 virtual scoped_ptr<ConnectJob> NewConnectJob( | 207 virtual scoped_ptr<ConnectJob> NewConnectJob( |
| 208 const std::string& group_name, | 208 const std::string& group_name, |
| 209 const PoolBase::Request& request, | 209 const PoolBase::Request& request, |
| 210 ConnectJob::Delegate* delegate) const OVERRIDE; | 210 ConnectJob::Delegate* delegate) OVERRIDE; |
| 211 | 211 |
| 212 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; | 212 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; |
| 213 | 213 |
| 214 private: | 214 private: |
| 215 ClientSocketFactory* const client_socket_factory_; | 215 ClientSocketFactory* const client_socket_factory_; |
| 216 HostResolver* const host_resolver_; | 216 HostResolver* const host_resolver_; |
| 217 NetLog* net_log_; | 217 NetLog* net_log_; |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(TransportConnectJobFactory); | 219 DISALLOW_COPY_AND_ASSIGN(TransportConnectJobFactory); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 PoolBase base_; | 222 PoolBase base_; |
| 223 | 223 |
| 224 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 224 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 } // namespace net | 227 } // namespace net |
| 228 | 228 |
| 229 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 229 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |