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 'prerender_instant_url_on_omnibox_focus' flag is enabled in |
| 170 // field trials to prerender Instant search base page when the omnibox is |
| 171 // focused. |
| 172 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); |
| 173 |
169 // Returns true if 'reuse_instant_search_base_page' flag is set to true in field | 174 // Returns true if 'reuse_instant_search_base_page' flag is set to true in field |
170 // trials to reuse the prerendered page to commit any search query. | 175 // trials to reuse the prerendered page to commit any search query. |
171 bool ShouldReuseInstantSearchBasePage(); | 176 bool ShouldReuseInstantSearchBasePage(); |
172 | 177 |
173 // Returns the Local Instant URL of the New Tab Page. | 178 // Returns the Local Instant URL of the New Tab Page. |
174 // TODO(kmadhusu): Remove this function and update the call sites. | 179 // TODO(kmadhusu): Remove this function and update the call sites. |
175 GURL GetLocalInstantURL(Profile* profile); | 180 GURL GetLocalInstantURL(Profile* profile); |
176 | 181 |
177 // Returns true if 'hide_verbatim' flag is enabled in field trials | 182 // Returns true if 'hide_verbatim' flag is enabled in field trials |
178 // to hide the top match in the native suggestions dropdown if it is a verbatim | 183 // to hide the top match in the native suggestions dropdown if it is a verbatim |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 bool GetBoolValueForFlagWithDefault(const std::string& flag, | 280 bool GetBoolValueForFlagWithDefault(const std::string& flag, |
276 bool default_value, | 281 bool default_value, |
277 const FieldTrialFlags& flags); | 282 const FieldTrialFlags& flags); |
278 | 283 |
279 // Returns the Cacheable New Tab Page URL for the given |profile|. | 284 // Returns the Cacheable New Tab Page URL for the given |profile|. |
280 GURL GetNewTabPageURL(Profile* profile); | 285 GURL GetNewTabPageURL(Profile* profile); |
281 | 286 |
282 } // namespace chrome | 287 } // namespace chrome |
283 | 288 |
284 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 289 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
OLD | NEW |