| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 bool IsOmniboxEnabled(Profile* profile); | 25 bool IsOmniboxEnabled(Profile* profile); |
| 26 | 26 |
| 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 ShouldDisableLocalPredictorBasedOnSyncAndConfiguration(Profile* profile); |
| 36 |
| 37 // Returns whether or not the local predictor is temporarily disabled, due |
| 38 // to network predictive action settings and current network. |
| 39 bool ShouldDisableLocalPredictorDueToPreferencesAndNetwork(Profile* profile); |
| 36 | 40 |
| 37 // Returns true iff the LoggedIn Predictor is enabled. | 41 // Returns true iff the LoggedIn Predictor is enabled. |
| 38 bool IsLoggedInPredictorEnabled(); | 42 bool IsLoggedInPredictorEnabled(); |
| 39 | 43 |
| 40 // Returns true iff the side-effect free whitelist is enabled. | 44 // Returns true iff the side-effect free whitelist is enabled. |
| 41 bool IsSideEffectFreeWhitelistEnabled(); | 45 bool IsSideEffectFreeWhitelistEnabled(); |
| 42 | 46 |
| 43 // Returns true if the local predictor should actually launch prerenders. | 47 // Returns true if the local predictor should actually launch prerenders. |
| 44 bool IsLocalPredictorPrerenderLaunchEnabled(); | 48 bool IsLocalPredictorPrerenderLaunchEnabled(); |
| 45 | 49 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool SkipLocalPredictorDefaultNoPrerender(); | 103 bool SkipLocalPredictorDefaultNoPrerender(); |
| 100 bool SkipLocalPredictorLocalCandidates(); | 104 bool SkipLocalPredictorLocalCandidates(); |
| 101 bool SkipLocalPredictorServiceCandidates(); | 105 bool SkipLocalPredictorServiceCandidates(); |
| 102 | 106 |
| 103 // Indicates whether no prerender cookie stores should be used for prerendering. | 107 // Indicates whether no prerender cookie stores should be used for prerendering. |
| 104 bool IsPrerenderCookieStoreEnabled(); | 108 bool IsPrerenderCookieStoreEnabled(); |
| 105 | 109 |
| 106 } // namespace prerender | 110 } // namespace prerender |
| 107 | 111 |
| 108 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ | 112 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ |
| OLD | NEW |