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> | |
9 | |
10 class CommandLine; | |
11 class Profile; | |
12 | |
13 namespace chrome_browser_net { | 8 namespace chrome_browser_net { |
14 | 9 |
15 // Configures the AsyncDns field trial as follows. | 10 // Returns true if should set |HostResolver::Options::enable_async| to true. |
cbentzel
2012/10/25 20:37:16
This comment is a bit unclear.
Perhaps
Returns t
| |
16 // group A (async disabled): use CreateSystemHostResolver | 11 // Configures the AsyncDns field trial as follows: |
17 // group B (async enabled): use CreateAsyncHostResolver | 12 // groups AsyncDnsA and AsyncDnsB: return true, |
18 // Returns true if should use CreateAsyncHostResolver. | 13 // groups SystemDnsA and SystemDnsB: return false, |
14 // otherwise (trial absent): return false. | |
19 bool ConfigureAsyncDnsFieldTrial(); | 15 bool ConfigureAsyncDnsFieldTrial(); |
20 | 16 |
21 } // namespace chrome_browser_net | 17 } // namespace chrome_browser_net |
22 | 18 |
23 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ | 19 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ |
OLD | NEW |