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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 10413072: Teaching BrowsingDataRemover how to delete application data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/browsing_data_remover.h
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h
index c34db65ade7be003da2d66a253fe71e4e1292e1c..2e6a88c387c963794026975468e0c99e1308e641 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -57,6 +57,11 @@ class BrowsingDataRemover : public content::NotificationObserver,
EVERYTHING
};
+ enum RemoveOriginSet {
+ REMOVE_FROM_UNPROTECTED_ORIGINS,
+ REMOVE_FROM_ALL_ORIGINS
+ };
+
// Mask used for Remove.
enum RemoveDataMask {
REMOVE_APPCACHE = 1 << 0,
@@ -120,7 +125,7 @@ class BrowsingDataRemover : public content::NotificationObserver,
base::Time delete_end);
// Removes the specified items related to browsing for all origins.
- void Remove(int remove_mask);
+ void Remove(int remove_mask, RemoveOriginSet origin_set);
Bernhard Bauer 2012/05/23 11:13:11 Is there a reason you're not just passing in a boo
Mike West 2012/05/23 11:23:51 Magic booleans are confusing in a public API. *shr
Bernhard Bauer 2012/05/23 11:31:40 Right; what I usually do in that case is something
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698