| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); | 171 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); |
| 172 | 172 |
| 173 // Returns true if 'reuse_instant_search_base_page' flag is set to true in field | 173 // Returns true if 'reuse_instant_search_base_page' flag is set to true in field |
| 174 // trials to reuse the prerendered page to commit any search query. | 174 // trials to reuse the prerendered page to commit any search query. |
| 175 bool ShouldReuseInstantSearchBasePage(); | 175 bool ShouldReuseInstantSearchBasePage(); |
| 176 | 176 |
| 177 // Returns the Local Instant URL of the New Tab Page. | 177 // Returns the Local Instant URL of the New Tab Page. |
| 178 // TODO(kmadhusu): Remove this function and update the call sites. | 178 // TODO(kmadhusu): Remove this function and update the call sites. |
| 179 GURL GetLocalInstantURL(Profile* profile); | 179 GURL GetLocalInstantURL(Profile* profile); |
| 180 | 180 |
| 181 // Returns true if 'hide_verbatim' flag is enabled in field trials | |
| 182 // to hide the top match in the native suggestions dropdown if it is a verbatim | |
| 183 // match. See comments on ShouldHideTopMatch in autocomplete_result.h. | |
| 184 bool ShouldHideTopVerbatimMatch(); | |
| 185 | |
| 186 // Returns when we should show a search button in the omnibox. This may be any | 181 // Returns when we should show a search button in the omnibox. This may be any |
| 187 // of several values, some of which depend on whether the underlying state of | 182 // of several values, some of which depend on whether the underlying state of |
| 188 // the page would normally be to perform search term replacement; see also | 183 // the page would normally be to perform search term replacement; see also |
| 189 // ToolbarModel::WouldPerformSearchTermReplacement(). | 184 // ToolbarModel::WouldPerformSearchTermReplacement(). |
| 190 DisplaySearchButtonConditions GetDisplaySearchButtonConditions(); | 185 DisplaySearchButtonConditions GetDisplaySearchButtonConditions(); |
| 191 | 186 |
| 192 // Returns true if the origin chip should be shown. | 187 // Returns true if the origin chip should be shown. |
| 193 bool ShouldDisplayOriginChip(); | 188 bool ShouldDisplayOriginChip(); |
| 194 | 189 |
| 195 // Returns a value indicating when the origin chip should be shown. | 190 // Returns a value indicating when the origin chip should be shown. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 GURL GetNewTabPageURL(Profile* profile); | 247 GURL GetNewTabPageURL(Profile* profile); |
| 253 | 248 |
| 254 // Returns true if 'use_alternate_instant_url' flag is set to true in field | 249 // Returns true if 'use_alternate_instant_url' flag is set to true in field |
| 255 // trials to use an alternate Instant search base page URL for prefetching | 250 // trials to use an alternate Instant search base page URL for prefetching |
| 256 // search results. This allows experimentation of Instant search. | 251 // search results. This allows experimentation of Instant search. |
| 257 bool ShouldUseAltInstantURL(); | 252 bool ShouldUseAltInstantURL(); |
| 258 | 253 |
| 259 } // namespace chrome | 254 } // namespace chrome |
| 260 | 255 |
| 261 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 256 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |