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

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

Issue 2152743002: Remove search::ShouldPrerenderInstantUrlOnOmniboxFocus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_prefetch_srp
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 GURL GetInstantURL(Profile* profile, bool force_instant_results); 112 GURL GetInstantURL(Profile* profile, bool force_instant_results);
113 113
114 // Returns URLs associated with the default search engine for |profile|. 114 // Returns URLs associated with the default search engine for |profile|.
115 std::vector<GURL> GetSearchURLs(Profile* profile); 115 std::vector<GURL> GetSearchURLs(Profile* profile);
116 116
117 // Returns the default search engine base page URL to prefetch search results. 117 // Returns the default search engine base page URL to prefetch search results.
118 // Returns an empty URL if 'prefetch_results' flag is set to false in field 118 // Returns an empty URL if 'prefetch_results' flag is set to false in field
119 // trials. 119 // trials.
120 GURL GetSearchResultPrefetchBaseURL(Profile* profile); 120 GURL GetSearchResultPrefetchBaseURL(Profile* profile);
121 121
122 // Returns true if 'prerender_instant_url_on_omnibox_focus' flag is enabled in
123 // field trials to prerender Instant search base page when the omnibox is
124 // focused.
125 bool ShouldPrerenderInstantUrlOnOmniboxFocus();
126 122
127 // Transforms the input |url| into its "effective URL". |url| must be an 123 // Transforms the input |url| into its "effective URL". |url| must be an
128 // Instant URL, i.e. ShouldAssignURLToInstantRenderer must return true. The 124 // Instant URL, i.e. ShouldAssignURLToInstantRenderer must return true. The
129 // returned URL facilitates grouping process-per-site. The |url| is transformed, 125 // returned URL facilitates grouping process-per-site. The |url| is transformed,
130 // for example, from 126 // for example, from
131 // 127 //
132 // https://www.google.com/search?espv=1&q=tractors 128 // https://www.google.com/search?espv=1&q=tractors
133 // 129 //
134 // to the privileged URL 130 // to the privileged URL
135 // 131 //
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 173
178 // Returns true if 'use_search_path_for_instant' flag is set to true in field 174 // Returns true if 'use_search_path_for_instant' flag is set to true in field
179 // trials to use an '/search' path in an alternate Instant search base page URL 175 // trials to use an '/search' path in an alternate Instant search base page URL
180 // for prefetching search results. This allows experimentation of Instant 176 // for prefetching search results. This allows experimentation of Instant
181 // search. 177 // search.
182 bool ShouldUseSearchPathForInstant(); 178 bool ShouldUseSearchPathForInstant();
183 179
184 } // namespace search 180 } // namespace search
185 181
186 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 182 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698