summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/top_sites.h
diff options
context:
space:
mode:
authornshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 22:19:07 +0000
committernshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 22:19:07 +0000
commit7f22e72403cf15277253e12be647de40d8001f0c (patch)
tree59d49634e6c062554dcfbaf364a57453035717e7 /chrome/browser/history/top_sites.h
parent4f5193277bb84f43d0fbafb42e1442ac77ad47c3 (diff)
downloadchromium_src-7f22e72403cf15277253e12be647de40d8001f0c.zip
chromium_src-7f22e72403cf15277253e12be647de40d8001f0c.tar.gz
chromium_src-7f22e72403cf15277253e12be647de40d8001f0c.tar.bz2
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
Diffstat (limited to 'chrome/browser/history/top_sites.h')
-rw-r--r--chrome/browser/history/top_sites.h11
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();