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 "base/prefs/pref_service.h" | 8 #include "components/prefs/pref_service.h" |
9 | 9 |
10 namespace chrome_browser_net { | 10 namespace chrome_browser_net { |
11 | 11 |
12 // Returns true when the async resolver should be used. | 12 // Returns true when the async resolver should be used. |
13 bool ConfigureAsyncDnsFieldTrial(); | 13 bool ConfigureAsyncDnsFieldTrial(); |
14 | 14 |
15 // Logs the derivation of the async DNS pref's actual value, for debugging. | 15 // Logs the derivation of the async DNS pref's actual value, for debugging. |
16 // Must be called on the UI thread, since it accesses prefs directly. | 16 // Must be called on the UI thread, since it accesses prefs directly. |
17 void LogAsyncDnsPrefSource(const PrefService::Preference* pref); | 17 void LogAsyncDnsPrefSource(const PrefService::Preference* pref); |
18 | 18 |
19 } // namespace chrome_browser_net | 19 } // namespace chrome_browser_net |
20 | 20 |
21 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ | 21 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_ |
OLD | NEW |