| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SEARCH_SEARCH_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_ |
| 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ | 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Returns true if 'hide_verbatim' flag is enabled in field trials | 120 // Returns true if 'hide_verbatim' flag is enabled in field trials |
| 121 // to hide the top match in the native suggestions dropdown if it is a verbatim | 121 // to hide the top match in the native suggestions dropdown if it is a verbatim |
| 122 // match. See comments on ShouldHideTopMatch in autocomplete_result.h. | 122 // match. See comments on ShouldHideTopMatch in autocomplete_result.h. |
| 123 bool ShouldHideTopVerbatimMatch(); | 123 bool ShouldHideTopVerbatimMatch(); |
| 124 | 124 |
| 125 // Returns true if 'use_remote_ntp_on_startup' flag is enabled in field trials | 125 // Returns true if 'use_remote_ntp_on_startup' flag is enabled in field trials |
| 126 // to always show the remote NTP on browser startup. | 126 // to always show the remote NTP on browser startup. |
| 127 bool ShouldPreferRemoteNTPOnStartup(); | 127 bool ShouldPreferRemoteNTPOnStartup(); |
| 128 | 128 |
| 129 // Returns true if the cacheable NTP should be shown and false if not. |
| 130 // Exposed for testing. |
| 131 bool ShouldUseCacheableNTP(); |
| 132 |
| 129 // Returns true if the Instant NTP should be shown and false if not. | 133 // Returns true if the Instant NTP should be shown and false if not. |
| 130 bool ShouldShowInstantNTP(); | 134 bool ShouldShowInstantNTP(); |
| 131 | 135 |
| 132 // Returns true if the recent tabs link should be shown on the local NTP in | 136 // Returns true if the recent tabs link should be shown on the local NTP in |
| 133 // field trials. | 137 // field trials. |
| 134 bool ShouldShowRecentTabsOnNTP(); | 138 bool ShouldShowRecentTabsOnNTP(); |
| 135 | 139 |
| 136 // Returns true if |my_url| matches |other_url|. | 140 // Returns true if |my_url| matches |other_url|. |
| 137 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); | 141 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); |
| 138 | 142 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 bool default_value, | 231 bool default_value, |
| 228 const FieldTrialFlags& flags); | 232 const FieldTrialFlags& flags); |
| 229 | 233 |
| 230 // Let tests reset the gate that prevents metrics from being sent more than | 234 // Let tests reset the gate that prevents metrics from being sent more than |
| 231 // once. | 235 // once. |
| 232 void ResetInstantExtendedOptInStateGateForTest(); | 236 void ResetInstantExtendedOptInStateGateForTest(); |
| 233 | 237 |
| 234 } // namespace chrome | 238 } // namespace chrome |
| 235 | 239 |
| 236 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 240 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |