| 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.
|
|
|