summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/async_dns_field_trial.h
blob: 9bbea59066438e109250add8f6c4222fadee80ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 "base/prefs/pref_service.h"

namespace chrome_browser_net {

// Returns true when the async resolver should be used.
bool ConfigureAsyncDnsFieldTrial();

// Logs the derivation of the async DNS pref's actual value, for debugging.
// Must be called on the UI thread, since it accesses prefs directly.
void LogAsyncDnsPrefSource(const PrefService::Preference* pref);

}  // namespace chrome_browser_net

#endif  // CHROME_BROWSER_NET_ASYNC_DNS_FIELD_TRIAL_H_