| 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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "chrome/common/instant_types.h" | |
| 15 | 14 |
| 16 class GURL; | 15 class GURL; |
| 17 class Profile; | 16 class Profile; |
| 18 class TemplateURL; | 17 class TemplateURL; |
| 19 class TemplateURLRef; | 18 class TemplateURLRef; |
| 20 | 19 |
| 21 namespace content { | 20 namespace content { |
| 22 class NavigationEntry; | 21 class NavigationEntry; |
| 23 class WebContents; | 22 class WebContents; |
| 24 } | 23 } |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 int start_margin); | 236 int start_margin); |
| 238 | 237 |
| 239 // Returns whether the default search provider has a valid Instant URL in its | 238 // Returns whether the default search provider has a valid Instant URL in its |
| 240 // template. Exposed for testing only. | 239 // template. Exposed for testing only. |
| 241 bool DefaultSearchProviderSupportsInstant(Profile* profile); | 240 bool DefaultSearchProviderSupportsInstant(Profile* profile); |
| 242 | 241 |
| 243 // Let tests reset the gate that prevents metrics from being sent more than | 242 // Let tests reset the gate that prevents metrics from being sent more than |
| 244 // once. | 243 // once. |
| 245 void ResetInstantExtendedOptInStateGateForTest(); | 244 void ResetInstantExtendedOptInStateGateForTest(); |
| 246 | 245 |
| 247 // Returns true if |items_a| and |items_b| are equal. | |
| 248 bool AreMostVisitedItemsEqual( | |
| 249 const std::vector<InstantMostVisitedItem>& items_a, | |
| 250 const std::vector<InstantMostVisitedItem>& items_b); | |
| 251 | |
| 252 } // namespace chrome | 246 } // namespace chrome |
| 253 | 247 |
| 254 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 248 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |