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); |