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

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

Issue 59903010: Ensure using chrome://thumb2/... adds the URL as a forced URL in TopSites so that a thumbnail is ca… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take 2. Created 7 years, 1 month 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_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.h
diff --git a/chrome/browser/history/top_sites.h b/chrome/browser/history/top_sites.h
index f373315f8dfbba38dd8c014552c8e7d3e676f84b..d01af3cdb3e51427f597371d6daaffd55cafde9b 100644
--- a/chrome/browser/history/top_sites.h
+++ b/chrome/browser/history/top_sites.h
@@ -149,6 +149,13 @@ class TopSites
// Returns the set of prepopulate pages.
virtual MostVisitedURLList GetPrepopulatePages() = 0;
+ // Adds or updates a |url| for which we should force the capture of a
+ // thumbnail next time it's visited. If there is already a non-forced URL
+ // matching this |url| this call has no effect. Indicate this URL was laste
+ // forced at |time| so we can evict the older URLs when needed. Should be
+ // called from the UI thread.
+ virtual bool AddForcedURL(const GURL& url, const base::Time& time) = 0;
+
struct PrepopulatedPage {
// The string resource for the url.
int url_id;
« no previous file with comments | « no previous file | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698