| Index: chrome/browser/search/instant_service.h
|
| diff --git a/chrome/browser/search/instant_service.h b/chrome/browser/search/instant_service.h
|
| index 8ccebcd86b28d38672e83b044206a57f56b57810..6cc8efff5843950381e07a47434f39de9aa80d6b 100644
|
| --- a/chrome/browser/search/instant_service.h
|
| +++ b/chrome/browser/search/instant_service.h
|
| @@ -16,6 +16,8 @@
|
| #include "components/history/core/browser/history_types.h"
|
| #include "components/history/core/browser/top_sites_observer.h"
|
| #include "components/keyed_service/core/keyed_service.h"
|
| +#include "components/ntp_tiles/most_visited_sites.h"
|
| +#include "components/ntp_tiles/ntp_tile.h"
|
| #include "components/search_engines/template_url_service_observer.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| @@ -38,7 +40,8 @@ class RenderProcessHost;
|
| class InstantService : public KeyedService,
|
| public content::NotificationObserver,
|
| public TemplateURLServiceObserver,
|
| - public history::TopSitesObserver {
|
| + public history::TopSitesObserver,
|
| + public ntp_tiles::MostVisitedSites::Observer {
|
| public:
|
| explicit InstantService(Profile* profile);
|
| ~InstantService() override;
|
| @@ -129,6 +132,11 @@ class InstantService : public KeyedService,
|
| // NotifyAboutMostVisitedItems.
|
| void OnMostVisitedItemsReceived(const history::MostVisitedURLList& data);
|
|
|
| + // ntp_tiles::MostVisitedSites::Observer implementation.
|
| + void OnMostVisitedURLsAvailable(
|
| + const ntp_tiles::NTPTilesVector& tiles) override;
|
| + void OnIconMadeAvailable(const GURL& site_url) override;
|
| +
|
| // Notifies the observer about the last known most visited items.
|
| void NotifyAboutMostVisitedItems();
|
|
|
| @@ -168,6 +176,8 @@ class InstantService : public KeyedService,
|
| std::unique_ptr<TemplateURLData> previous_default_search_provider_;
|
| GURL previous_google_base_url_;
|
|
|
| + std::unique_ptr<ntp_tiles::MostVisitedSites> most_visited_sites_;
|
| +
|
| // Used for Top Sites async retrieval.
|
| base::WeakPtrFactory<InstantService> weak_ptr_factory_;
|
|
|
|
|