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

Unified Diff: chrome/browser/history/expire_history_backend.h

Issue 10380015: Now mark delete notifications for archived URLs specially (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 8 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
« no previous file with comments | « no previous file | chrome/browser/history/expire_history_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/expire_history_backend.h
diff --git a/chrome/browser/history/expire_history_backend.h b/chrome/browser/history/expire_history_backend.h
index ff965544f93271549fdb7a4b9c95cc115a2a470a..ebc58b1a648c886e6f61b97872eb0a026b376f01 100644
--- a/chrome/browser/history/expire_history_backend.h
+++ b/chrome/browser/history/expire_history_backend.h
@@ -195,8 +195,18 @@ class ExpireHistoryBackend {
// care about favicons so much, so don't want to stop everything if it fails).
void DeleteFaviconsIfPossible(const std::set<FaviconID>& favicon_id);
+ // Enum representing what type of action resulted in the history DB deletion.
+ enum DeletionType {
+ // User initiated the deletion from the History UI.
+ DELETION_USER_INITIATED,
+ // History data was automatically archived due to being more than 90 days
+ // old.
+ DELETION_ARCHIVED
+ };
+
// Broadcast the URL deleted notification.
- void BroadcastDeleteNotifications(DeleteDependencies* dependencies);
+ void BroadcastDeleteNotifications(DeleteDependencies* dependencies,
+ DeletionType type);
// Schedules a call to DoArchiveIteration.
void ScheduleArchive();
« no previous file with comments | « no previous file | chrome/browser/history/expire_history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698