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

Unified Diff: components/history/core/browser/history_backend_observer.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 | « chrome/chrome_browser.gypi ('k') | components/history/core/browser/history_service_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_backend_observer.h
diff --git a/components/history/core/browser/history_backend_observer.h b/components/history/core/browser/history_backend_observer.h
index 0d537b2758ba9a76dc7cfa65c45696bff47a04bb..80160923bbf9f1d9c291fdff95e7c9d37a17df43 100644
--- a/components/history/core/browser/history_backend_observer.h
+++ b/components/history/core/browser/history_backend_observer.h
@@ -35,8 +35,22 @@ class HistoryBackendObserver {
// |changed_urls| lists the information for each of the URLs affected. The
// rows will have the IDs that are currently in effect in the main history
// database.
- virtual void OnURLsModified(history::HistoryBackend* history_backend,
- const history::URLRows& changed_urls) = 0;
+ virtual void OnURLsModified(HistoryBackend* history_backend,
+ const URLRows& changed_urls) = 0;
+
+ // Called when one or more of URLs are deleted.
+ //
+ // |all_history| is set to true, if all the URLs are deleted.
+ // When set to true, |deleted_rows| and |favicon_urls| are
+ // undefined.
+ // |expired| is set to true, if the URL deletion is due to expiration.
+ // |deleted_rows| list of the deleted URLs.
+ // |favicon_urls| list of favicon URLs that correspond to the deleted URLs.
+ virtual void OnURLsDeleted(HistoryBackend* history_backend,
+ bool all_history,
+ bool expired,
+ const URLRows& deleted_rows,
+ const std::set<GURL>& favicon_urls) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(HistoryBackendObserver);
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/history/core/browser/history_service_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698