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

Side by Side Diff: chrome/browser/prerender/prerender_field_trial.h

Issue 1073633002: Remove PrerenderLocalPredictor, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-local-predictor-1
Patch Set: rebase Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_field_trial.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
7 7
8 class Profile; 8 class Profile;
9 9
10 namespace base { 10 namespace base {
11 class CommandLine; 11 class CommandLine;
12 } 12 }
13 13
14 namespace prerender { 14 namespace prerender {
15 15
16 // Parse the --prerender= command line switch, which controls prerendering. If 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 17 // the switch is unset or is set to "auto" then the user is assigned to a
18 // field trial. 18 // field trial.
19 void ConfigurePrerender(const base::CommandLine& command_line); 19 void ConfigurePrerender(const base::CommandLine& command_line);
20 20
21 // Returns true if the user has opted in or has been opted in to the 21 // Returns true if the user has opted in or has been opted in to the
22 // prerendering from Omnibox experiment. 22 // prerendering from Omnibox experiment.
23 bool IsOmniboxEnabled(Profile* profile); 23 bool IsOmniboxEnabled(Profile* profile);
24 24
25 // Returns true iff the side-effect free whitelist is enabled.
26 bool IsSideEffectFreeWhitelistEnabled();
27
28 } // namespace prerender 25 } // namespace prerender
29 26
30 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 27 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698