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 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
181 size_t max_concurrent_resolves, | 181 size_t max_concurrent_resolves, |
182 size_t max_retry_attempts, | 182 size_t max_retry_attempts, |
183 NetLog* net_log); | 183 NetLog* net_log); |
184 | 184 |
185 // As above, but the created HostResolver does not use a cache. | 185 // As above, but the created HostResolver does not use a cache. |
186 NET_EXPORT HostResolver* CreateNonCachingSystemHostResolver( | 186 NET_EXPORT HostResolver* CreateNonCachingSystemHostResolver( |
187 size_t max_concurrent_resolves, | 187 size_t max_concurrent_resolves, |
188 size_t max_retry_attempts, | 188 size_t max_retry_attempts, |
189 NetLog* net_log); | 189 NetLog* net_log); |
190 | 190 |
191 // Creates a HostResolver implementation that sends actual DNS queries to | 191 // Creates a HostResolver implementation that uses DnsConfigService to find |
192 // the specified DNS server and parses response and returns results. | 192 // the system DNS settings and attempts to resolve the hostnames using |
193 // the asynchronous DnsTransaction. | |
193 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, | 194 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, |
194 const IPAddressNumber& dns_ip, | 195 size_t max_retry_attempts, |
cbentzel
2012/02/10 19:51:08
Nit: document max_retry_attempts and max_concurren
| |
195 NetLog* net_log); | 196 NetLog* net_log); |
196 } // namespace net | 197 } // namespace net |
197 | 198 |
198 #endif // NET_BASE_HOST_RESOLVER_H_ | 199 #endif // NET_BASE_HOST_RESOLVER_H_ |
OLD | NEW |