| 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; |
| 11 |
| 12 namespace base { |
| 10 class CommandLine; | 13 class CommandLine; |
| 11 class Profile; | 14 } |
| 12 | 15 |
| 13 namespace prerender { | 16 namespace prerender { |
| 14 | 17 |
| 15 // Parse the --prerender= command line switch, which controls prerendering. If | 18 // Parse the --prerender= command line switch, which controls prerendering. If |
| 16 // the switch is unset or is set to "auto" then the user is assigned to a | 19 // the switch is unset or is set to "auto" then the user is assigned to a |
| 17 // field trial. | 20 // field trial. |
| 18 void ConfigurePrerender(const CommandLine& command_line); | 21 void ConfigurePrerender(const base::CommandLine& command_line); |
| 19 | 22 |
| 20 // Returns true if the user has opted in or has been opted in to the | 23 // Returns true if the user has opted in or has been opted in to the |
| 21 // prerendering from Omnibox experiment. | 24 // prerendering from Omnibox experiment. |
| 22 bool IsOmniboxEnabled(Profile* profile); | 25 bool IsOmniboxEnabled(Profile* profile); |
| 23 | 26 |
| 24 // Returns true if session storage namespace merging is not disabled. | 27 // Returns true if session storage namespace merging is not disabled. |
| 25 bool ShouldMergeSessionStorageNamespaces(); | 28 bool ShouldMergeSessionStorageNamespaces(); |
| 26 | 29 |
| 27 // Returns true iff the Prerender Local Predictor is enabled. | 30 // Returns true iff the Prerender Local Predictor is enabled. |
| 28 bool IsLocalPredictorEnabled(); | 31 bool IsLocalPredictorEnabled(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool SkipLocalPredictorWhitelist(); | 86 bool SkipLocalPredictorWhitelist(); |
| 84 bool SkipLocalPredictorServiceWhitelist(); | 87 bool SkipLocalPredictorServiceWhitelist(); |
| 85 bool SkipLocalPredictorLoggedIn(); | 88 bool SkipLocalPredictorLoggedIn(); |
| 86 bool SkipLocalPredictorDefaultNoPrerender(); | 89 bool SkipLocalPredictorDefaultNoPrerender(); |
| 87 bool SkipLocalPredictorLocalCandidates(); | 90 bool SkipLocalPredictorLocalCandidates(); |
| 88 bool SkipLocalPredictorServiceCandidates(); | 91 bool SkipLocalPredictorServiceCandidates(); |
| 89 | 92 |
| 90 } // namespace prerender | 93 } // namespace prerender |
| 91 | 94 |
| 92 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ | 95 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_ |
| OLD | NEW |