Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Side by Side Diff: chrome/browser/search/search.h

Issue 324273004: Allow non default prefetch suggestions to be prefetched (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Autocomplete result check added Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | chrome/browser/ui/omnibox/omnibox_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698