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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 8907015: Adding chrome::NOTIFICATION_BROWSING_DATA_REMOVED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Struct. Rebase onto a slightly less red trunk. Created 9 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | chrome/browser/browsing_data_remover.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.h
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h
index 385ecaa19e4d7f938acf5fb9f36599a828de5bf7..8a36191ff85a246e613b09a92f8c38ebf08eba2b 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -77,6 +77,21 @@ class BrowsingDataRemover : public content::NotificationObserver,
REMOVE_LSO_DATA | REMOVE_WEBSQL
};
+ // When BrowsingDataRemover successfully removes data, a notification of type
+ // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of
+ // this type.
+ struct NotificationDetail {
jochen (gone - plz use gerrit) 2011/12/13 13:18:48 NotificationDetails
Mike West 2011/12/13 14:23:26 Done.
+ NotificationDetail(base::Time removal_begin,
+ int removal_mask);
jochen (gone - plz use gerrit) 2011/12/13 13:18:48 for structs, we usually also provide a constructor
Mike West 2011/12/13 14:23:26 Done.
+ ~NotificationDetail();
+
+ // The beginning of the removal time range.
+ base::Time removal_begin;
+
+ // The removal mask (see the RemoveDataMask enum for details)
+ int removal_mask;
+ };
+
// Observer is notified when the removal is done. Done means keywords have
// been deleted, cache cleared and all other tasks scheduled.
class Observer {
@@ -255,6 +270,9 @@ class BrowsingDataRemover : public content::NotificationObserver,
int quota_managed_origins_to_delete_count_;
int quota_managed_storage_types_to_delete_count_;
+ // The removal mask for the current removal operation.
+ int remove_mask_;
+
ObserverList<Observer> observer_list_;
// Used if we need to clear history.
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | chrome/browser/browsing_data_remover.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698