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_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/template_util.h" |
13 #include "base/time.h" | 14 #include "base/time.h" |
14 #include "base/template_util.h" | |
15 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
16 #include "net/base/host_resolver.h" | |
17 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
18 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
19 #include "net/base/request_priority.h" | 18 #include "net/base/request_priority.h" |
| 19 #include "net/dns/host_resolver.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class DictionaryValue; | 22 class DictionaryValue; |
23 } | 23 } |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
27 class ClientSocketHandle; | 27 class ClientSocketHandle; |
28 class ClientSocketPoolHistograms; | 28 class ClientSocketPoolHistograms; |
29 class StreamSocket; | 29 class StreamSocket; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 const scoped_refptr<SocketParams>& params, | 211 const scoped_refptr<SocketParams>& params, |
212 int num_sockets, | 212 int num_sockets, |
213 const BoundNetLog& net_log) { | 213 const BoundNetLog& net_log) { |
214 CheckIsValidSocketParamsForPool<PoolType, SocketParams>(); | 214 CheckIsValidSocketParamsForPool<PoolType, SocketParams>(); |
215 pool->RequestSockets(group_name, ¶ms, num_sockets, net_log); | 215 pool->RequestSockets(group_name, ¶ms, num_sockets, net_log); |
216 } | 216 } |
217 | 217 |
218 } // namespace net | 218 } // namespace net |
219 | 219 |
220 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_H_ | 220 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |