| 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 InstantSupportState GetInstantSupportStateFromNavigationEntry( | 159 InstantSupportState GetInstantSupportStateFromNavigationEntry( |
| 160 const content::NavigationEntry& entry); | 160 const content::NavigationEntry& entry); |
| 161 | 161 |
| 162 // ----------------------------------------------------- | 162 // ----------------------------------------------------- |
| 163 // The following APIs are exposed for use in tests only. | 163 // The following APIs are exposed for use in tests only. |
| 164 // ----------------------------------------------------- | 164 // ----------------------------------------------------- |
| 165 | 165 |
| 166 // Returns the Cacheable New Tab Page URL for the given |profile|. | 166 // Returns the Cacheable New Tab Page URL for the given |profile|. |
| 167 GURL GetNewTabPageURL(Profile* profile); | 167 GURL GetNewTabPageURL(Profile* profile); |
| 168 | 168 |
| 169 // Returns true if 'use_alternate_instant_url' flag is set to true in field | |
| 170 // trials to use an alternate Instant search base page URL for prefetching | |
| 171 // search results. This allows experimentation of Instant search. | |
| 172 bool ShouldUseAltInstantURL(); | |
| 173 | |
| 174 // Returns true if 'use_search_path_for_instant' flag is set to true in field | |
| 175 // trials to use an '/search' path in an alternate Instant search base page URL | |
| 176 // for prefetching search results. This allows experimentation of Instant | |
| 177 // search. | |
| 178 bool ShouldUseSearchPathForInstant(); | |
| 179 | |
| 180 } // namespace search | 169 } // namespace search |
| 181 | 170 |
| 182 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 171 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |