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

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: Removed local variables in tests Created 6 years 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: 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..bdaea856696c7bd894a06f28aae536f14c11c7a0 100644
--- a/components/history/core/browser/history_backend_observer.h
+++ b/components/history/core/browser/history_backend_observer.h
@@ -35,9 +35,23 @@ 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,
+ virtual void OnURLsModified(HistoryBackend* history_backend,
const history::URLRows& changed_urls) = 0;
sdefresne 2014/12/08 17:41:06 nit: history::URLRows -> URLRows
nshaik 2014/12/08 21:29:53 Done.
+ // 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);
};

Powered by Google App Engine
This is Rietveld 408576698