diff options
Diffstat (limited to 'chrome/browser/history/top_sites.h')
-rw-r--r-- | chrome/browser/history/top_sites.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/history/top_sites.h b/chrome/browser/history/top_sites.h index 4f6f854..d05afb1 100644 --- a/chrome/browser/history/top_sites.h +++ b/chrome/browser/history/top_sites.h @@ -91,11 +91,12 @@ class TopSites : public base::RefCountedThreadSafe<TopSites> { ~TopSites(); - // Called by the public SetPageThumbnail. Takes RefCountedBytes - // rather than a SkBitmap. - bool SetPageThumbnail(const GURL& url, - const RefCountedBytes* thumbnail_data, - const ThumbnailScore& score); + // Sets the thumbnail without writing to the database. Useful when + // reading last known top sites from the DB. + // Returns true if the thumbnail was set, false if the existing one is better. + bool SetPageThumbnailNoDB(const GURL& url, + const RefCountedBytes* thumbnail_data, + const ThumbnailScore& score); void StartQueryForMostVisited(); |