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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover.h

Issue 874613004: Remove NOTIFICATION_BROWSING_DATA_REMOVED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename global variable 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/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_remover.h
diff --git a/chrome/browser/browsing_data/browsing_data_remover.h b/chrome/browser/browsing_data/browsing_data_remover.h
index 133a89a72e13a80558a934465a650c1e7a99ed62..174458d756bc0d1a3fcc68aa8a91449d49e5d127 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.h
+++ b/chrome/browser/browsing_data/browsing_data_remover.h
@@ -152,6 +152,10 @@ class BrowsingDataRemover
virtual ~Observer() {}
};
+ using Callback = base::Callback<void(const NotificationDetails&)>;
+ using CallbackSubscription = scoped_ptr<
+ base::CallbackList<void(const NotificationDetails&)>::Subscription>;
+
// The completion inhibitor can artificially delay completion of the browsing
// data removal process. It is used during testing to simulate scenarios in
// which the deletion stalls or takes a very long time.
@@ -200,6 +204,12 @@ class BrowsingDataRemover
completion_inhibitor_ = inhibitor;
}
+ // Add a callback to the list of callbacks to be called during a browsing data
+ // removal event. Returns a subscription object that can be used to
+ // un-register the callback.
+ static CallbackSubscription RegisterOnBrowsingDataRemovedCallback(
+ const Callback& callback);
+
// Removes the specified items related to browsing for all origins that match
// the provided |origin_set_mask| (see BrowsingDataHelper::OriginSetMask).
void Remove(int remove_mask, int origin_set_mask);
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698