Chromium Code Reviews| Index: chrome/browser/android/most_visited_sites.h |
| diff --git a/chrome/browser/android/most_visited_sites.h b/chrome/browser/android/most_visited_sites.h |
| index 21af53f3fee98ea5c15dbf640d8c95eb561cd355..6389662a7a8605a9da721d3667242dafabe6e94f 100644 |
| --- a/chrome/browser/android/most_visited_sites.h |
| +++ b/chrome/browser/android/most_visited_sites.h |
| @@ -10,6 +10,7 @@ |
| #include "base/android/scoped_java_ref.h" |
| #include "base/compiler_specific.h" |
| #include "base/memory/weak_ptr.h" |
| +#include "chrome/browser/history/history_types.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| @@ -49,6 +50,12 @@ class MostVisitedSites : public content::NotificationObserver { |
| // enabled, or if it returns no data. |
| void InitiateTopSitesQuery(); |
| + // Callback for when data is available from TopSites. |
| + void OnMostVisitedURLsAvailable( |
| + base::android::ScopedJavaGlobalRef<jobject>* j_observer, |
| + int num_sites, |
| + const history::MostVisitedURLList& visited_list); |
| + |
| // Callback for when data is available from the SuggestionsService. |
| void OnSuggestionsProfileAvailable( |
| base::android::ScopedJavaGlobalRef<jobject>* j_observer, |
| @@ -68,6 +75,13 @@ class MostVisitedSites : public content::NotificationObserver { |
| content::NotificationRegistrar registrar_; |
| + // The source of the most visited sites. |
|
Mathieu
2014/05/22 21:50:49
*Most Visited
manzagop (departed)
2014/05/23 15:20:02
Done.
|
| + enum MostVisitedSource { |
| + TOP_SITES, |
| + SUGGESTIONS_SERVICE |
| + }; |
| + MostVisitedSource mv_source_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
| }; |