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

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

Issue 6389001: Add heuristics to skip thumbnail generation when it's unnecessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor cleanup Created 9 years, 11 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
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 4c5d79af0a68c48bade1a478a835548eff04230c..ca0d7bc6b374a09449ed1bcef29a51d9ae929c75 100644
--- a/chrome/browser/history/top_sites_cache.h
+++ b/chrome/browser/history/top_sites_cache.h
@@ -45,6 +45,10 @@ class TopSitesCache {
bool GetPageThumbnail(const GURL& url,
scoped_refptr<RefCountedBytes>* bytes);
+ // Fetches the thumbnail score for the specified url. Returns true if
+ // there is a thumbnail score for the specified url.
+ bool GetPageThumbnailScore(const GURL& url, ThumbnailScore* score);
+
// Returns the canonical URL for |url|.
GURL GetCanonicalURL(const GURL& url);

Powered by Google App Engine
This is Rietveld 408576698