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

Unified Diff: components/ntp_tiles/icon_cacher.h

Issue 2695713004: Add baked-in favicons for default popular sites on NTP (Closed)
Patch Set: Have python script adhere to guidelines Created 3 years, 10 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: components/ntp_tiles/icon_cacher.h
diff --git a/components/ntp_tiles/icon_cacher.h b/components/ntp_tiles/icon_cacher.h
index 22beeb6f48c415b3616e15c8c1a94a6b4b9b3c23..c5e4280da6476698a90f5261b068d4a2c38e0c20 100644
--- a/components/ntp_tiles/icon_cacher.h
+++ b/components/ntp_tiles/icon_cacher.h
@@ -24,6 +24,12 @@ class IconCacher {
// newly fetched (false if it was already cached or could not be fetched).
virtual void StartFetch(PopularSites::Site site,
const base::Callback<void(bool)>& done) = 0;
+
+ // Associates a sites with the given image resource. The resource is used as a
+ // default which means it falls back to it if there is no current image and
+ // will try to update it when requested.
+ virtual void AddDefaultImage(const PopularSites::Site& site,
+ int image_resource_id) = 0;
};
} // namespace ntp_tiles

Powered by Google App Engine
This is Rietveld 408576698