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

Unified Diff: chrome/browser/android/provider/chrome_browser_provider.h

Issue 773103004: Remove NOTIFICATION_HISTORY_URLS_DELETED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to tip Created 5 years, 11 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 | « no previous file | chrome/browser/android/provider/chrome_browser_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/provider/chrome_browser_provider.h
diff --git a/chrome/browser/android/provider/chrome_browser_provider.h b/chrome/browser/android/provider/chrome_browser_provider.h
index 56b4ffdc2fda16f75e46deabac78953740449ce7..6fc7661eb4438c378cb4b6b2fa569aed1889d279 100644
--- a/chrome/browser/android/provider/chrome_browser_provider.h
+++ b/chrome/browser/android/provider/chrome_browser_provider.h
@@ -14,8 +14,6 @@
#include "components/bookmarks/browser/base_bookmark_model_observer.h"
#include "components/history/core/browser/android/android_history_types.h"
#include "components/history/core/browser/history_service_observer.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
class AndroidHistoryProviderService;
class FaviconService;
@@ -31,7 +29,6 @@ class Statement;
// This class implements the native methods of ChromeBrowserProvider.java
class ChromeBrowserProvider : public bookmarks::BaseBookmarkModelObserver,
- public content::NotificationObserver,
public history::HistoryServiceObserver {
public:
ChromeBrowserProvider(JNIEnv* env, jobject obj);
@@ -193,6 +190,11 @@ class ChromeBrowserProvider : public bookmarks::BaseBookmarkModelObserver,
const history::URLRow& row,
const history::RedirectList& redirects,
base::Time visit_time) override;
+ void OnURLsDeleted(HistoryService* history_service,
+ bool all_history,
+ bool expired,
+ const history::URLRows& deleted_rows,
+ const std::set<GURL>& favicon_urls) override;
void OnKeywordSearchTermUpdated(HistoryService* history_service,
const history::URLRow& row,
history::KeywordID keyword_id,
@@ -200,11 +202,6 @@ class ChromeBrowserProvider : public bookmarks::BaseBookmarkModelObserver,
void OnKeywordSearchTermDeleted(HistoryService* history_service,
history::URLID url_id) override;
- // Override content::NotificationObserver.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) override;
-
JavaObjectWeakGlobalRef weak_java_provider_;
// Profile must outlive this object.
@@ -221,8 +218,6 @@ class ChromeBrowserProvider : public bookmarks::BaseBookmarkModelObserver,
base::CancelableTaskTracker cancelable_task_tracker_;
- // Used to register/unregister notification observer.
- content::NotificationRegistrar notification_registrar_;
ScopedObserver<HistoryService, HistoryServiceObserver>
history_service_observer_;
« no previous file with comments | « no previous file | chrome/browser/android/provider/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698