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

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: sync 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
« no previous file with comments | « no previous file | chrome/browser/net/async_dns_field_trial.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/async_dns_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698