| 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" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
| 16 #include "net/base/host_resolver.h" | 16 #include "net/dns/host_resolver.h" |
| 17 #include "net/base/single_request_host_resolver.h" | 17 #include "net/dns/single_request_host_resolver.h" |
| 18 #include "net/socket/client_socket_pool.h" |
| 18 #include "net/socket/client_socket_pool_base.h" | 19 #include "net/socket/client_socket_pool_base.h" |
| 19 #include "net/socket/client_socket_pool_histograms.h" | 20 #include "net/socket/client_socket_pool_histograms.h" |
| 20 #include "net/socket/client_socket_pool.h" | |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 | 23 |
| 24 class ClientSocketFactory; | 24 class ClientSocketFactory; |
| 25 | 25 |
| 26 typedef base::Callback<int(const AddressList&, const BoundNetLog& net_log)> | 26 typedef base::Callback<int(const AddressList&, const BoundNetLog& net_log)> |
| 27 OnHostResolutionCallback; | 27 OnHostResolutionCallback; |
| 28 | 28 |
| 29 class NET_EXPORT_PRIVATE TransportSocketParams | 29 class NET_EXPORT_PRIVATE TransportSocketParams |
| 30 : public base::RefCounted<TransportSocketParams> { | 30 : public base::RefCounted<TransportSocketParams> { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 213 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 216 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
| 217 TransportSocketParams); | 217 TransportSocketParams); |
| 218 | 218 |
| 219 } // namespace net | 219 } // namespace net |
| 220 | 220 |
| 221 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 221 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |