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

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

Issue 2556543004: Add a NoStatePrefetch entry in about://flags (Closed)
Patch Set: fix histograms.xml Created 4 years 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 | « chrome/browser/about_flags.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 9
10 class Profile; 10 class Profile;
11 11
12 namespace prerender { 12 namespace prerender {
13 13
14 // Exposed for testing.
15 extern const base::Feature kNoStatePrefetchFeature; 14 extern const base::Feature kNoStatePrefetchFeature;
16 extern const char kNoStatePrefetchFeatureModeParameterName[]; 15 extern const char kNoStatePrefetchFeatureModeParameterName[];
16 extern const char kNoStatePrefetchFeatureModeParameterPrefetch[];
Alexei Svitkine (slow) 2016/12/07 15:50:00 Is there a corresponding .cc file change missing f
droger 2016/12/07 15:55:30 No, these constants already exist, they just were
17 extern const char kNoStatePrefetchFeatureModeParameterPrerender[];
17 extern const char kNoStatePrefetchFeatureModeParameterSimpleLoad[]; 18 extern const char kNoStatePrefetchFeatureModeParameterSimpleLoad[];
18 19
19 // Configures prerender using kNoStatePrefetchFeature and field trial 20 // Configures prerender using kNoStatePrefetchFeature and field trial
20 // parameters. 21 // parameters.
21 void ConfigurePrerender(); 22 void ConfigurePrerender();
22 23
23 // Returns true if the user has opted in or has been opted in to the 24 // Returns true if the user has opted in or has been opted in to the
24 // prerendering from Omnibox experiment. 25 // prerendering from Omnibox experiment.
25 bool IsOmniboxEnabled(Profile* profile); 26 bool IsOmniboxEnabled(Profile* profile);
26 27
27 } // namespace prerender 28 } // namespace prerender
28 29
29 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 30 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698