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 CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ | 5 #ifndef CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ |
6 #define CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ | 6 #define CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 class CommandLine; | 10 class CommandLine; |
11 class Profile; | 11 class Profile; |
12 | 12 |
13 namespace chrome_browser_net { | 13 namespace chrome_browser_net { |
14 | 14 |
15 // Configures the AsyncDns field trial as follows. | 15 // Returns true if should set |HostResolver::Options::enable_async| to true. |
16 // group A (async disabled): use CreateSystemHostResolver | 16 // Configures the AsyncDns field trial as follows: |
17 // group B (async enabled): use CreateAsyncHostResolver | 17 // groups AsyncDnsA and AsyncDnsB: return true |
18 // Returns true if should use CreateAsyncHostResolver. | 18 // groups SystemDnsA and SystemDnsB: return false |
| 19 // otherwise (trial absent): return false |
19 bool ConfigureAsyncDnsFieldTrial(); | 20 bool ConfigureAsyncDnsFieldTrial(); |
20 | 21 |
21 } // namespace chrome_browser_net | 22 } // namespace chrome_browser_net |
22 | 23 |
23 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ | 24 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ |
OLD | NEW |