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

Unified Diff: components/ntp_tiles/most_visited_sites.h

Issue 2572133002: Add more features to ntp-tiles-internal (Closed)
Patch Set: address comments Created 4 years 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/most_visited_sites.h
diff --git a/components/ntp_tiles/most_visited_sites.h b/components/ntp_tiles/most_visited_sites.h
index 1b1f9f5396d61e6623fe100d7c8f54fb48bb631e..69b13aaad760ad828c065cfef970a81d80446d00 100644
--- a/components/ntp_tiles/most_visited_sites.h
+++ b/components/ntp_tiles/most_visited_sites.h
@@ -101,6 +101,19 @@ class MostVisitedSites : public history::TopSitesObserver,
~MostVisitedSites() override;
+ // Returns true if this object was created with a non-null provider for the
+ // given NTP tile source. That source may or may not actually provide tiles,
+ // depending on its configuration and the priority of different sources.
+ bool DoesSourceExist(NTPTileSource source) const;
+
+ // Returns the corresponding object passed at construction.
+ history::TopSites* top_sites() { return top_sites_.get(); }
+ suggestions::SuggestionsService* suggestions() {
+ return suggestions_service_;
+ }
+ PopularSites* popular_sites() { return popular_sites_.get(); }
+ MostVisitedSitesSupervisor* supervisor() { return supervisor_.get(); }
+
// Sets the observer, and immediately fetches the current suggestions.
// Does not take ownership of |observer|, which must outlive this object and
// must not be null.

Powered by Google App Engine
This is Rietveld 408576698