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

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

Issue 14273023: Rebuild test history databases when starting up performance_ui_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT (and redo changes from TopSites to TopSitesImpl) Created 7 years, 8 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
Index: chrome/browser/history/top_sites.h
diff --git a/chrome/browser/history/top_sites.h b/chrome/browser/history/top_sites.h
index 52fcb907c8b1758398b6e34d8e30767388080b6e..b5148469e02e28a2d943f1a79dce4746da6dd033 100644
--- a/chrome/browser/history/top_sites.h
+++ b/chrome/browser/history/top_sites.h
@@ -53,6 +53,13 @@ class TopSites
const gfx::Image& thumbnail,
const ThumbnailScore& score) = 0;
+ // While testing the history system, we want to set the thumbnail to a piece
+ // of static memory.
+ virtual bool SetPageThumbnailToJPEGBytes(
+ const GURL& url,
+ const base::RefCountedMemory* memory,
+ const ThumbnailScore& score) = 0;
+
typedef base::Callback<void(const MostVisitedURLList&)>
GetMostVisitedURLsCallback;
typedef std::vector<GetMostVisitedURLsCallback> PendingCallbacks;

Powered by Google App Engine
This is Rietveld 408576698