Popular sites on the NTP: re-download popular suggestions once per Chrome run
[chromium-blink-merge.git] / chrome / browser / net / async_dns_field_trial.h
blob9bbea59066438e109250add8f6c4222fadee80ef
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_
8 #include "base/prefs/pref_service.h"
10 namespace chrome_browser_net {
12 // Returns true when the async resolver should be used.
13 bool ConfigureAsyncDnsFieldTrial();
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.
17 void LogAsyncDnsPrefSource(const PrefService::Preference* pref);
19 } // namespace chrome_browser_net
21 #endif // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_