Index: components/ntp_tiles/icon_cacher.h |
diff --git a/components/ntp_tiles/icon_cacher.h b/components/ntp_tiles/icon_cacher.h |
index bfea2969464059c7a4e703829c4f9ad70d896f9f..c2ba6b161e3ceadf5e2acea78da90370fbbe3185 100644 |
--- a/components/ntp_tiles/icon_cacher.h |
+++ b/components/ntp_tiles/icon_cacher.h |
@@ -25,9 +25,15 @@ class IconCacher { |
// If there are preliminary icons (e.g. provided by static resources), the |
// optional |preliminary_icon_available| callback will be invoked in addition. |
// TODO(fhorschig): In case we keep these, make them OnceClosures. |
- virtual void StartFetch(PopularSites::Site site, |
- const base::Closure& icon_available, |
- const base::Closure& preliminary_icon_available) = 0; |
+ virtual void StartFetchPopularSites( |
+ PopularSites::Site site, |
+ const base::Closure& icon_available, |
+ const base::Closure& preliminary_icon_available) = 0; |
+ |
+ // Fetches the icon if necessary, then invokes |done| with true if it was |
+ // newly fetched (false if it was already cached or could not be fetched). |
+ virtual void StartFetchMostLikely(const GURL& page_url, |
+ const base::Closure& icon_available) = 0; |
}; |
} // namespace ntp_tiles |