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

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

Issue 2499003: Write thumbnail to the database on SetPageThumbnail.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | « no previous file | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.h
===================================================================
--- chrome/browser/history/top_sites.h (revision 48639)
+++ chrome/browser/history/top_sites.h (working copy)
@@ -91,11 +91,12 @@
~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();
« no previous file with comments | « no previous file | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698