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

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

Issue 591313005: Provide a way to specify in Finch trials to disable prerender local (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 <string> 8 #include <string>
9 9
10 class Profile; 10 class Profile;
(...skipping 16 matching lines...) Expand all
27 // Returns true if session storage namespace merging is not disabled. 27 // Returns true if session storage namespace merging is not disabled.
28 bool ShouldMergeSessionStorageNamespaces(); 28 bool ShouldMergeSessionStorageNamespaces();
29 29
30 // Returns true iff the Prerender Local Predictor is enabled. 30 // Returns true iff the Prerender Local Predictor is enabled.
31 bool IsLocalPredictorEnabled(); 31 bool IsLocalPredictorEnabled();
32 32
33 // Indicates whether to disable the local predictor due to unencrypted sync 33 // Indicates whether to disable the local predictor due to unencrypted sync
34 // settings and configuration. 34 // settings and configuration.
35 bool DisableLocalPredictorBasedOnSyncAndConfiguration(Profile* profile); 35 bool DisableLocalPredictorBasedOnSyncAndConfiguration(Profile* profile);
36 36
37 // Returns whether or not the local predictor is temporarily disabled, due
38 // to network predictive action settings and current network.
39 bool TemporarilyDisableLocalPredictorBasedOnPreferencesAndNetwork(
jkarlin 2014/09/23 14:54:03 TemporarilyDisable makes it sound like the functio
tburkard 2014/09/24 15:15:34 Done.
40 Profile* profile);
41
37 // Returns true iff the LoggedIn Predictor is enabled. 42 // Returns true iff the LoggedIn Predictor is enabled.
38 bool IsLoggedInPredictorEnabled(); 43 bool IsLoggedInPredictorEnabled();
39 44
40 // Returns true iff the side-effect free whitelist is enabled. 45 // Returns true iff the side-effect free whitelist is enabled.
41 bool IsSideEffectFreeWhitelistEnabled(); 46 bool IsSideEffectFreeWhitelistEnabled();
42 47
43 // Returns true if the local predictor should actually launch prerenders. 48 // Returns true if the local predictor should actually launch prerenders.
44 bool IsLocalPredictorPrerenderLaunchEnabled(); 49 bool IsLocalPredictorPrerenderLaunchEnabled();
45 50
46 // Returns true if the local predictor should prerender, but only as control 51 // Returns true if the local predictor should prerender, but only as control
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool SkipLocalPredictorDefaultNoPrerender(); 104 bool SkipLocalPredictorDefaultNoPrerender();
100 bool SkipLocalPredictorLocalCandidates(); 105 bool SkipLocalPredictorLocalCandidates();
101 bool SkipLocalPredictorServiceCandidates(); 106 bool SkipLocalPredictorServiceCandidates();
102 107
103 // Indicates whether no prerender cookie stores should be used for prerendering. 108 // Indicates whether no prerender cookie stores should be used for prerendering.
104 bool IsPrerenderCookieStoreEnabled(); 109 bool IsPrerenderCookieStoreEnabled();
105 110
106 } // namespace prerender 111 } // namespace prerender
107 112
108 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ 113 #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') | chrome/browser/prerender/prerender_field_trial.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698