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

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

Issue 151168: Moved typedef of RedirectList from HistoryService class to history namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_THUMBNAIL_STORE_H_ 5 #ifndef CHROME_BROWSER_THUMBNAIL_STORE_H_
6 #define CHROME_BROWSER_THUMBNAIL_STORE_H_ 6 #define CHROME_BROWSER_THUMBNAIL_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 std::wstring GetDictionaryKeyForURL(const std::string& url) const; 137 std::wstring GetDictionaryKeyForURL(const std::string& url) const;
138 138
139 // Returns true if url is in most_visited_urls_. 139 // Returns true if url is in most_visited_urls_.
140 bool IsPopular(const GURL& url) const; 140 bool IsPopular(const GURL& url) const;
141 141
142 // The callback for GetPageThumbnailAsync. Caches the redirect list 142 // The callback for GetPageThumbnailAsync. Caches the redirect list
143 // and calls the callback for the request asssociated with the url. 143 // and calls the callback for the request asssociated with the url.
144 void OnRedirectQueryComplete(HistoryService::Handle request_handle, 144 void OnRedirectQueryComplete(HistoryService::Handle request_handle,
145 GURL url, 145 GURL url,
146 bool success, 146 bool success,
147 HistoryService::RedirectList* redirects); 147 history::RedirectList* redirects);
148 148
149 // Called on a timer initiated in Init(). Calls the HistoryService to 149 // Called on a timer initiated in Init(). Calls the HistoryService to
150 // update the list of most visited URLs. The callback is 150 // update the list of most visited URLs. The callback is
151 // OnMostVisitedURLsAvailable. 151 // OnMostVisitedURLsAvailable.
152 void UpdateMostVisited(); 152 void UpdateMostVisited();
153 153
154 // Updates the list of most visited URLs. Then calls CleanCacheData. 154 // Updates the list of most visited URLs. Then calls CleanCacheData.
155 void OnMostVisitedURLsAvailable(CancelableRequestProvider::Handle handle, 155 void OnMostVisitedURLsAvailable(CancelableRequestProvider::Handle handle,
156 std::vector<PageUsageData*>* data); 156 std::vector<PageUsageData*>* data);
157 157
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Consumer for getting the list of most visited urls. 196 // Consumer for getting the list of most visited urls.
197 CancelableRequestConsumerTSimple<PageUsageData*> cancelable_consumer_; 197 CancelableRequestConsumerTSimple<PageUsageData*> cancelable_consumer_;
198 198
199 static const int kMostVisitedScope = 90; 199 static const int kMostVisitedScope = 90;
200 static const unsigned int kMaxCacheSize = 45; 200 static const unsigned int kMaxCacheSize = 45;
201 201
202 DISALLOW_COPY_AND_ASSIGN(ThumbnailStore); 202 DISALLOW_COPY_AND_ASSIGN(ThumbnailStore);
203 }; 203 };
204 204
205 #endif // CHROME_BROWSER_THUMBNAIL_STORE_H_ 205 #endif // CHROME_BROWSER_THUMBNAIL_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_model_unittest.cc ('k') | chrome/browser/thumbnail_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698