Chromium Code Reviews| 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/string16.h" | 13 #include "base/string16.h" |
| 14 #include "chrome/common/instant_types.h" | |
| 14 | 15 |
| 15 class GURL; | 16 class GURL; |
| 16 class Profile; | 17 class Profile; |
| 17 class TemplateURL; | 18 class TemplateURL; |
| 18 class TemplateURLRef; | 19 class TemplateURLRef; |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 class NavigationEntry; | 22 class NavigationEntry; |
| 22 class WebContents; | 23 class WebContents; |
| 23 } | 24 } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 int start_margin); | 216 int start_margin); |
| 216 | 217 |
| 217 // Returns whether the default search provider has a valid Instant URL in its | 218 // Returns whether the default search provider has a valid Instant URL in its |
| 218 // template. Exposed for testing only. | 219 // template. Exposed for testing only. |
| 219 bool DefaultSearchProviderSupportsInstant(Profile* profile); | 220 bool DefaultSearchProviderSupportsInstant(Profile* profile); |
| 220 | 221 |
| 221 // Let tests reset the gate that prevents metrics from being sent more than | 222 // Let tests reset the gate that prevents metrics from being sent more than |
| 222 // once. | 223 // once. |
| 223 void ResetInstantExtendedOptInStateGateForTest(); | 224 void ResetInstantExtendedOptInStateGateForTest(); |
| 224 | 225 |
| 226 // Returns true if |new_items| and |old_items| are equal. | |
|
Jered
2013/05/31 17:34:33
Instead of "new" and "old", you can just call thes
kmadhusu
2013/06/04 02:36:01
Done.
| |
| 227 bool AreMostVisitedItemsEqual( | |
| 228 const std::vector<InstantMostVisitedItem>& new_items, | |
| 229 const std::vector<InstantMostVisitedItem>& old_items); | |
| 230 | |
| 225 } // namespace chrome | 231 } // namespace chrome |
| 226 | 232 |
| 227 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 233 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |