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

Unified Diff: components/ntp_tiles/most_visited_sites.h

Issue 2572133002: Add more features to ntp-tiles-internal (Closed)
Patch Set: Add ntp_tiles owners to client webui owners 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
« no previous file with comments | « chrome/browser/ui/webui/popular_sites_internals_ui.cc ('k') | components/ntp_tiles/most_visited_sites.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1b987c2970079df9ee2ad14e5934eced04744883..5df1fc6687454a691f42a627c2bc5ea2efa3d0ef 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.
« no previous file with comments | « chrome/browser/ui/webui/popular_sites_internals_ui.cc ('k') | components/ntp_tiles/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698