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

Unified Diff: chrome/browser/net/async_dns_field_trial.h

Issue 10828373: [net] Add AsyncDns field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/async_dns_field_trial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/async_dns_field_trial.h
diff --git a/chrome/browser/net/async_dns_field_trial.h b/chrome/browser/net/async_dns_field_trial.h
new file mode 100644
index 0000000000000000000000000000000000000000..48b3945fb0bbebb5ba12d46d17553abcbaf813cb
--- /dev/null
+++ b/chrome/browser/net/async_dns_field_trial.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_
+#define CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_
+
+#include <string>
+
+class CommandLine;
+class Profile;
+
+namespace chrome_browser_net {
+
+// Configures the AsyncDns field trial as follows.
+// group A (async disabled): use CreateSystemHostResolver
+// group B (async enabled): use CreateAsyncHostResolver
+// Returns true if should use CreateAsyncHostResolver.
+bool ConfigureAsyncDnsFieldTrial();
+
+} // namespace chrome_browser_net
+
+#endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/async_dns_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698