From 7f22e72403cf15277253e12be647de40d8001f0c Mon Sep 17 00:00:00 2001 From: "nshkrob@chromium.org" Date: Wed, 2 Jun 2010 22:19:07 +0000 Subject: 1. Write thumbnail to the database on SetPageThumbnail. 2. Store the thumbnail score in the database. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2499003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48777 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/history/top_sites.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'chrome/browser/history/top_sites.h') 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(); - // 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(); -- cgit v1.1