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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/address_family.h" | 10 #include "net/base/address_family.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 size_t max_retry_attempts, | 199 size_t max_retry_attempts, |
200 NetLog* net_log); | 200 NetLog* net_log); |
201 | 201 |
202 // As above, but the HostResolver will use the asynchronous DNS client in | 202 // As above, but the HostResolver will use the asynchronous DNS client in |
203 // DnsTransaction, which will be configured using DnsConfigService to match | 203 // DnsTransaction, which will be configured using DnsConfigService to match |
204 // the system DNS settings. If the client fails, the resolver falls back to | 204 // the system DNS settings. If the client fails, the resolver falls back to |
205 // the global HostResolverProc. | 205 // the global HostResolverProc. |
206 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, | 206 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, |
207 size_t max_retry_attempts, | 207 size_t max_retry_attempts, |
208 NetLog* net_log); | 208 NetLog* net_log); |
| 209 |
| 210 |
| 211 // Configures the AsyncDns field trial as follows. |
| 212 // group A (async disabled): use CreateSystemHostResolver |
| 213 // group B (async enabled): use CreateAsyncHostResolver |
| 214 // Returns true if should use CreateAsyncHostResolver. |
| 215 NET_EXPORT bool ConfigureAsyncDnsFieldTrial(); |
| 216 |
209 } // namespace net | 217 } // namespace net |
210 | 218 |
211 #endif // NET_BASE_HOST_RESOLVER_H_ | 219 #endif // NET_BASE_HOST_RESOLVER_H_ |
OLD | NEW |