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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 9379008: Add origin-based deletion to BrowsingDataRemover (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_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 ff5159e1fe575580aae26bce3cb2f798acf5e1bb..b5cf09047a77c776d068d3e55b890dc4d7993878 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -117,9 +117,13 @@ class BrowsingDataRemover : public content::NotificationObserver,
BrowsingDataRemover(Profile* profile, TimePeriod time_period,
base::Time delete_end);
- // Removes the specified items related to browsing.
+ // Removes the specified items related to browsing for all origins.
void Remove(int remove_mask);
+ // Removes the specified items related to browsing for a specific host. If the
+ // provided |origin| is empty, data is removed for all origins.
+ void Remove(int remove_mask, const GURL& origin);
Bernhard Bauer 2012/02/10 19:50:57 Name this method RemoveOrigin so that you don't ov
+
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
@@ -290,6 +294,9 @@ class BrowsingDataRemover : public content::NotificationObserver,
// The removal mask for the current removal operation.
int remove_mask_;
+ // The origin for the current removal operation.
+ GURL remove_origin_;
+
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