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

Unified Diff: components/suggestions/suggestions_service.h

Issue 1314493013: Popular sites on the NTP: add thumbnails! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_clang_dbg_recipe build Created 5 years, 3 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 | « components/suggestions/image_manager_unittest.cc ('k') | components/suggestions/suggestions_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/suggestions_service.h
diff --git a/components/suggestions/suggestions_service.h b/components/suggestions/suggestions_service.h
index 7f0aab3525adaa6cd9cefb2e16db3910f763b57c..5af4c55885151a471fa83221845850e3eae5fe98 100644
--- a/components/suggestions/suggestions_service.h
+++ b/components/suggestions/suggestions_service.h
@@ -73,7 +73,15 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
// |callback| with Bitmap pointer if found, and NULL otherwise.
void GetPageThumbnail(
const GURL& url,
- base::Callback<void(const GURL&, const SkBitmap*)> callback);
+ const base::Callback<void(const GURL&, const SkBitmap*)>& callback);
+
+ // A version of |GetPageThumbnail| that explicitly supplies the download URL
+ // for the thumbnail. Replaces any pre-existing thumbnail URL with the
+ // supplied one.
+ void GetPageThumbnailWithURL(
+ const GURL& url,
+ const GURL& thumbnail_url,
+ const base::Callback<void(const GURL&, const SkBitmap*)>& callback);
// Adds a URL to the blacklist cache, invoking |callback| on success or
// |fail_callback| otherwise. The URL will eventually be uploaded to the
« no previous file with comments | « components/suggestions/image_manager_unittest.cc ('k') | components/suggestions/suggestions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698