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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Returns the default search engine base page URL to prefetch search results. | 127 // Returns the default search engine base page URL to prefetch search results. |
128 // Returns an empty URL if 'prefetch_results' flag is set to false in field | 128 // Returns an empty URL if 'prefetch_results' flag is set to false in field |
129 // trials. | 129 // trials. |
130 GURL GetSearchResultPrefetchBaseURL(Profile* profile); | 130 GURL GetSearchResultPrefetchBaseURL(Profile* profile); |
131 | 131 |
132 // Returns true if 'prerender_instant_url_on_omnibox_focus' flag is enabled in | 132 // Returns true if 'prerender_instant_url_on_omnibox_focus' flag is enabled in |
133 // field trials to prerender Instant search base page when the omnibox is | 133 // field trials to prerender Instant search base page when the omnibox is |
134 // focused. | 134 // focused. |
135 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); | 135 bool ShouldPrerenderInstantUrlOnOmniboxFocus(); |
136 | 136 |
137 // Returns true if the local new tab page should show a Google logo and search | |
138 // box for users whose default search provider is Google, or false if not. | |
139 bool ShouldShowGoogleLocalNTP(); | |
140 | |
141 // Transforms the input |url| into its "effective URL". The returned URL | 137 // Transforms the input |url| into its "effective URL". The returned URL |
142 // facilitates grouping process-per-site. The |url| is transformed, for | 138 // facilitates grouping process-per-site. The |url| is transformed, for |
143 // example, from | 139 // example, from |
144 // | 140 // |
145 // https://www.google.com/search?espv=1&q=tractors | 141 // https://www.google.com/search?espv=1&q=tractors |
146 // | 142 // |
147 // to the privileged URL | 143 // to the privileged URL |
148 // | 144 // |
149 // chrome-search://www.google.com/search?espv=1&q=tractors | 145 // chrome-search://www.google.com/search?espv=1&q=tractors |
150 // | 146 // |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 190 |
195 // Returns true if 'use_search_path_for_instant' flag is set to true in field | 191 // Returns true if 'use_search_path_for_instant' flag is set to true in field |
196 // trials to use an '/search' path in an alternate Instant search base page URL | 192 // trials to use an '/search' path in an alternate Instant search base page URL |
197 // for prefetching search results. This allows experimentation of Instant | 193 // for prefetching search results. This allows experimentation of Instant |
198 // search. | 194 // search. |
199 bool ShouldUseSearchPathForInstant(); | 195 bool ShouldUseSearchPathForInstant(); |
200 | 196 |
201 } // namespace search | 197 } // namespace search |
202 | 198 |
203 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 199 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
OLD | NEW |