Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: chrome/browser/search/search.h

Issue 15907006: Rip out browser-side RID caching for most visited items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 int start_margin); 225 int start_margin);
225 226
226 // Returns whether the default search provider has a valid Instant URL in its 227 // Returns whether the default search provider has a valid Instant URL in its
227 // template. Exposed for testing only. 228 // template. Exposed for testing only.
228 bool DefaultSearchProviderSupportsInstant(Profile* profile); 229 bool DefaultSearchProviderSupportsInstant(Profile* profile);
229 230
230 // Let tests reset the gate that prevents metrics from being sent more than 231 // Let tests reset the gate that prevents metrics from being sent more than
231 // once. 232 // once.
232 void ResetInstantExtendedOptInStateGateForTest(); 233 void ResetInstantExtendedOptInStateGateForTest();
233 234
235 // Returns true if |items_a| and |items_b| are equal.
236 bool AreMostVisitedItemsEqual(
237 const std::vector<InstantMostVisitedItem>& items_a,
238 const std::vector<InstantMostVisitedItem>& items_b);
239
234 } // namespace chrome 240 } // namespace chrome
235 241
236 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 242 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698