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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 10806034: Ability to clear old history Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/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_remover.h
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h
index 3d66f0d1a2a6f5e5f06c1cd9319815318b7c9b3f..e33b8038c30779267a1804fb318c50b050ad14b5 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -57,6 +57,10 @@ class BrowsingDataRemover : public content::NotificationObserver,
LAST_DAY,
LAST_WEEK,
FOUR_WEEKS,
+ EXCEPT_LAST_HOUR,
+ EXCEPT_LAST_DAY,
+ EXCEPT_LAST_WEEK,
+ EXCEPT_FOUR_WEEKS,
EVERYTHING
};
@@ -124,8 +128,7 @@ class BrowsingDataRemover : public content::NotificationObserver,
// Creates a BrowsingDataRemover to remove browser data from the specified
// profile in the specified time range.
- BrowsingDataRemover(Profile* profile, TimePeriod time_period,
- base::Time delete_end);
+ BrowsingDataRemover(Profile* profile, TimePeriod time_period);
// Removes the specified items related to browsing for all origins that match
// the provided |origin_set_mask| (see BrowsingDataHelper::OriginSetMask).
@@ -283,6 +286,9 @@ class BrowsingDataRemover : public content::NotificationObserver,
// Calculate the begin time for the deletion range specified by |time_period|.
base::Time CalculateBeginDeleteTime(TimePeriod time_period);
+ // Calculate the end time for the deletion range specified by |time_period|.
+ base::Time CalculateEndDeleteTime(TimePeriod time_period);
+
// Returns true if we're all done.
bool AllDone();
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698