| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Returns the default search engine base page URL to prefetch search results. | 160 // Returns the default search engine base page URL to prefetch search results. |
| 161 // Returns an empty URL if 'prefetch_results' flag is set to false in field | 161 // Returns an empty URL if 'prefetch_results' flag is set to false in field |
| 162 // trials. | 162 // trials. |
| 163 GURL GetSearchResultPrefetchBaseURL(Profile* profile); | 163 GURL GetSearchResultPrefetchBaseURL(Profile* profile); |
| 164 | 164 |
| 165 // Returns true if 'prefetch_results' flag is set to true in field trials to | 165 // Returns true if 'prefetch_results' flag is set to true in field trials to |
| 166 // prefetch high-confidence search suggestions. | 166 // prefetch high-confidence search suggestions. |
| 167 bool ShouldPrefetchSearchResults(); | 167 bool ShouldPrefetchSearchResults(); |
| 168 | 168 |
| 169 // Returns true if 'allow_prefetch_non_default_match' flag is enabled in field |
| 170 // trials to allow prefetching the suggestion marked to be prefetched by the |
| 171 // suggest server even if it is not the default match. |
| 172 bool ShouldAllowPrefetchNonDefaultMatch(); |
| 173 |
| 169 // Returns true if 'prerender_instant_url_on_omnibox_focus' flag is enabled in | 174 // Returns true if 'prerender_instant_url_on_omnibox_focus' flag is enabled in |
| 170 // field trials to prerender Instant search base page when the omnibox is | 175 // field trials to prerender Instant search base page when the omnibox is |
| 171 // focused. | 176 // focused. |
| 172 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); | 177 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); |
| 173 | 178 |
| 174 // Returns true if 'reuse_instant_search_base_page' flag is set to true in field | 179 // Returns true if 'reuse_instant_search_base_page' flag is set to true in field |
| 175 // trials to reuse the prerendered page to commit any search query. | 180 // trials to reuse the prerendered page to commit any search query. |
| 176 bool ShouldReuseInstantSearchBasePage(); | 181 bool ShouldReuseInstantSearchBasePage(); |
| 177 | 182 |
| 178 // Returns the Local Instant URL of the New Tab Page. | 183 // Returns the Local Instant URL of the New Tab Page. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 bool GetBoolValueForFlagWithDefault(const std::string& flag, | 285 bool GetBoolValueForFlagWithDefault(const std::string& flag, |
| 281 bool default_value, | 286 bool default_value, |
| 282 const FieldTrialFlags& flags); | 287 const FieldTrialFlags& flags); |
| 283 | 288 |
| 284 // Returns the Cacheable New Tab Page URL for the given |profile|. | 289 // Returns the Cacheable New Tab Page URL for the given |profile|. |
| 285 GURL GetNewTabPageURL(Profile* profile); | 290 GURL GetNewTabPageURL(Profile* profile); |
| 286 | 291 |
| 287 } // namespace chrome | 292 } // namespace chrome |
| 288 | 293 |
| 289 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 294 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |