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

Unified Diff: chrome/browser/history/top_sites_cache.h

Issue 8355031: Most Visited: remove over-eager optimization that causes a lot of blank thumbnails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test and remove unused function Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/history/top_sites_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites_cache.h
diff --git a/chrome/browser/history/top_sites_cache.h b/chrome/browser/history/top_sites_cache.h
index a7cf8a7652dbb0506df4698a6205c59e5b954ec2..08b3d3591fdc886feabf5a10bd410140adb3c039 100644
--- a/chrome/browser/history/top_sites_cache.h
+++ b/chrome/browser/history/top_sites_cache.h
@@ -31,11 +31,6 @@ class TopSitesCache {
void SetThumbnails(const URLToImagesMap& images);
const URLToImagesMap& images() const { return images_; }
- // Set a thumbnail.
- void SetPageThumbnail(const GURL& url,
- RefCountedBytes* thumbnail,
- const ThumbnailScore& score);
-
// Returns the thumbnail as an Image for the specified url. This adds an entry
// for |url| if one has not yet been added.
Images* GetImage(const GURL& url);
@@ -59,9 +54,6 @@ class TopSitesCache {
// Returns the index into |top_sites_| for |url|.
size_t GetURLIndex(const GURL& url);
- // Removes any thumbnails that are no longer referenced by the top sites.
- void RemoveUnreferencedThumbnails();
-
private:
// The entries in CanonicalURLs, see CanonicalURLs for details. The second
// argument gives the index of the URL into MostVisitedURLs redirects.
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/history/top_sites_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698