Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / prerender / prerender_field_trial.h
blob4480732e3320cfe10f7ec93f6323d0faa70b582a
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_PRERENDER_PRERENDER_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
8 class Profile;
10 namespace base {
11 class CommandLine;
14 namespace prerender {
16 // Parse the --prerender= command line switch, which controls prerendering. If
17 // the switch is unset or is set to "auto" then the user is assigned to a
18 // field trial.
19 void ConfigurePrerender(const base::CommandLine& command_line);
21 // Returns true if the user has opted in or has been opted in to the
22 // prerendering from Omnibox experiment.
23 bool IsOmniboxEnabled(Profile* profile);
25 } // namespace prerender
27 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_