Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: chrome/browser/net/async_dns_field_trial.h

Issue 11262018: Move AsyncDns field trial to server-side control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: explain why using prefix to match group name Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/async_dns_field_trial.cc » ('j') | chrome/browser/net/async_dns_field_trial.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698