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

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

Issue 14585015: Recommit the generate profile patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Load the browser dll manually on Windows. Created 7 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 | « chrome/browser/history/top_sites_cache.cc ('k') | chrome/browser/history/top_sites_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites_impl.h
diff --git a/chrome/browser/history/top_sites_impl.h b/chrome/browser/history/top_sites_impl.h
index 6292bd362e2807692ed4b5eaf965f0c07f0cfc63..e5abb645589f153bd70d0ae9e019ad48e3a07998 100644
--- a/chrome/browser/history/top_sites_impl.h
+++ b/chrome/browser/history/top_sites_impl.h
@@ -58,6 +58,10 @@ class TopSitesImpl : public TopSites {
virtual bool SetPageThumbnail(const GURL& url,
const gfx::Image& thumbnail,
const ThumbnailScore& score) OVERRIDE;
+ virtual bool SetPageThumbnailToJPEGBytes(
+ const GURL& url,
+ const base::RefCountedMemory* memory,
+ const ThumbnailScore& score) OVERRIDE;
virtual void GetMostVisitedURLs(
const GetMostVisitedURLsCallback& callback) OVERRIDE;
virtual bool GetPageThumbnail(
@@ -136,13 +140,13 @@ class TopSitesImpl : public TopSites {
// 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 base::RefCountedBytes* thumbnail_data,
+ const base::RefCountedMemory* thumbnail_data,
const ThumbnailScore& score);
// A version of SetPageThumbnail that takes RefCountedBytes as
// returned by HistoryService.
bool SetPageThumbnailEncoded(const GURL& url,
- const base::RefCountedBytes* thumbnail,
+ const base::RefCountedMemory* thumbnail,
const ThumbnailScore& score);
// Encodes the bitmap to bytes for storage to the db. Returns true if the
@@ -156,7 +160,7 @@ class TopSitesImpl : public TopSites {
// Add a thumbnail for an unknown url. See temp_thumbnails_map_.
void AddTemporaryThumbnail(const GURL& url,
- const base::RefCountedBytes* thumbnail,
+ const base::RefCountedMemory* thumbnail,
const ThumbnailScore& score);
// Called by our timer. Starts the query for the most visited sites.
« no previous file with comments | « chrome/browser/history/top_sites_cache.cc ('k') | chrome/browser/history/top_sites_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698