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

Unified Diff: chrome/browser/android/most_visited_sites.h

Issue 298703009: SuggestionsService blacklist handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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);
};
« no previous file with comments | « no previous file | chrome/browser/android/most_visited_sites.cc » ('j') | chrome/browser/android/most_visited_sites.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698