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_BASE_HOST_RESOLVER_H_ | 5 #ifndef NET_BASE_HOST_RESOLVER_H_ |
6 #define NET_BASE_HOST_RESOLVER_H_ | 6 #define NET_BASE_HOST_RESOLVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "net/base/address_family.h" | 11 #include "net/base/address_family.h" |
13 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
14 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
15 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
16 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
17 #include "net/base/request_priority.h" | 16 #include "net/base/request_priority.h" |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 class Value; | 19 class Value; |
21 } | 20 } |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // As above, but the HostResolver will use the asynchronous DNS client in | 199 // As above, but the HostResolver will use the asynchronous DNS client in |
201 // DnsTransaction, which will be configured using DnsConfigService to match | 200 // DnsTransaction, which will be configured using DnsConfigService to match |
202 // the system DNS settings. If the client fails, the resolver falls back to | 201 // the system DNS settings. If the client fails, the resolver falls back to |
203 // the global HostResolverProc. | 202 // the global HostResolverProc. |
204 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, | 203 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, |
205 size_t max_retry_attempts, | 204 size_t max_retry_attempts, |
206 NetLog* net_log); | 205 NetLog* net_log); |
207 } // namespace net | 206 } // namespace net |
208 | 207 |
209 #endif // NET_BASE_HOST_RESOLVER_H_ | 208 #endif // NET_BASE_HOST_RESOLVER_H_ |
OLD | NEW |