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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Exposed for testing. | 130 // Exposed for testing. |
131 bool ShouldUseCacheableNTP(); | 131 bool ShouldUseCacheableNTP(); |
132 | 132 |
133 // Returns true if the Instant NTP should be shown and false if not. | 133 // Returns true if the Instant NTP should be shown and false if not. |
134 bool ShouldShowInstantNTP(); | 134 bool ShouldShowInstantNTP(); |
135 | 135 |
136 // Returns true if the recent tabs link should be shown on the local NTP in | 136 // Returns true if the recent tabs link should be shown on the local NTP in |
137 // field trials. | 137 // field trials. |
138 bool ShouldShowRecentTabsOnNTP(); | 138 bool ShouldShowRecentTabsOnNTP(); |
139 | 139 |
| 140 // Returns true if Instant Extended should be disabled on the search results |
| 141 // page. |
| 142 bool ShouldSuppressInstantExtendedOnSRP(); |
| 143 |
140 // Returns true if |my_url| matches |other_url|. | 144 // Returns true if |my_url| matches |other_url|. |
141 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); | 145 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); |
142 | 146 |
143 // Transforms the input |url| into its "effective URL". The returned URL | 147 // Transforms the input |url| into its "effective URL". The returned URL |
144 // facilitates grouping process-per-site. The |url| is transformed, for | 148 // facilitates grouping process-per-site. The |url| is transformed, for |
145 // example, from | 149 // example, from |
146 // | 150 // |
147 // https://www.google.com/search?espv=1&q=tractors | 151 // https://www.google.com/search?espv=1&q=tractors |
148 // | 152 // |
149 // to the privileged URL | 153 // to the privileged URL |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 bool default_value, | 238 bool default_value, |
235 const FieldTrialFlags& flags); | 239 const FieldTrialFlags& flags); |
236 | 240 |
237 // Let tests reset the gate that prevents metrics from being sent more than | 241 // Let tests reset the gate that prevents metrics from being sent more than |
238 // once. | 242 // once. |
239 void ResetInstantExtendedOptInStateGateForTest(); | 243 void ResetInstantExtendedOptInStateGateForTest(); |
240 | 244 |
241 } // namespace chrome | 245 } // namespace chrome |
242 | 246 |
243 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 247 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
OLD | NEW |