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

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

Issue 2143953002: Remove search::ShouldPrefetchSearchResultsOnSRP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO 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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 // Sets the Instant support |state| in the navigation |entry|. 157 // Sets the Instant support |state| in the navigation |entry|.
158 void SetInstantSupportStateInNavigationEntry(InstantSupportState state, 158 void SetInstantSupportStateInNavigationEntry(InstantSupportState state,
159 content::NavigationEntry* entry); 159 content::NavigationEntry* entry);
160 160
161 // Returns the Instant support state attached to the NavigationEntry, or 161 // Returns the Instant support state attached to the NavigationEntry, or
162 // INSTANT_SUPPORT_UNKNOWN otherwise. 162 // INSTANT_SUPPORT_UNKNOWN otherwise.
163 InstantSupportState GetInstantSupportStateFromNavigationEntry( 163 InstantSupportState GetInstantSupportStateFromNavigationEntry(
164 const content::NavigationEntry& entry); 164 const content::NavigationEntry& entry);
165 165
166 // Returns true if the field trial flag is enabled to prefetch results on SRP.
167 bool ShouldPrefetchSearchResultsOnSRP();
168
169 // ----------------------------------------------------- 166 // -----------------------------------------------------
170 // The following APIs are exposed for use in tests only. 167 // The following APIs are exposed for use in tests only.
171 // ----------------------------------------------------- 168 // -----------------------------------------------------
172 169
173 // Returns the Cacheable New Tab Page URL for the given |profile|. 170 // Returns the Cacheable New Tab Page URL for the given |profile|.
174 GURL GetNewTabPageURL(Profile* profile); 171 GURL GetNewTabPageURL(Profile* profile);
175 172
176 // Returns true if 'use_alternate_instant_url' flag is set to true in field 173 // Returns true if 'use_alternate_instant_url' flag is set to true in field
177 // trials to use an alternate Instant search base page URL for prefetching 174 // trials to use an alternate Instant search base page URL for prefetching
178 // search results. This allows experimentation of Instant search. 175 // search results. This allows experimentation of Instant search.
179 bool ShouldUseAltInstantURL(); 176 bool ShouldUseAltInstantURL();
180 177
181 // Returns true if 'use_search_path_for_instant' flag is set to true in field 178 // Returns true if 'use_search_path_for_instant' flag is set to true in field
182 // trials to use an '/search' path in an alternate Instant search base page URL 179 // trials to use an '/search' path in an alternate Instant search base page URL
183 // for prefetching search results. This allows experimentation of Instant 180 // for prefetching search results. This allows experimentation of Instant
184 // search. 181 // search.
185 bool ShouldUseSearchPathForInstant(); 182 bool ShouldUseSearchPathForInstant();
186 183
187 } // namespace search 184 } // namespace search
188 185
189 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 186 #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/chrome_omnibox_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698