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

Unified Diff: ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h

Issue 2270063005: Add support for time based deletion of browsing data on iOS (Closed)
Patch Set: Updated comment in AccountConsistencyService Created 4 years, 3 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: ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
diff --git a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
index 64b83b1e716183fcbecbaeb3f716d5f36970a469..79f33eba2655e28fa91108231cc4526152e66723 100644
--- a/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
+++ b/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h
@@ -15,6 +15,7 @@
#include "base/sequenced_task_runner_helpers.h"
#include "base/task/cancelable_task_tracker.h"
#include "base/time/time.h"
+#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/prefs/pref_member.h"
#include "components/search_engines/template_url_service.h"
#include "url/gurl.h"
@@ -33,9 +34,6 @@ class URLRequestContextGetter;
class IOSChromeBrowsingDataRemover {
public:
- // Time period ranges available when doing browsing data removals.
- enum TimePeriod { EVERYTHING };
-
// Mask used for Remove.
enum RemoveDataMask {
REMOVE_APPCACHE = 1 << 0,
@@ -119,10 +117,7 @@ class IOSChromeBrowsingDataRemover {
// itself once finished.
static IOSChromeBrowsingDataRemover* CreateForPeriod(
ios::ChromeBrowserState* browser_state,
- TimePeriod period);
-
- // Calculate the begin time for the deletion range specified by |time_period|.
- static base::Time CalculateBeginDeleteTime(TimePeriod time_period);
+ browsing_data::TimePeriod period);
// Is the IOSChromeBrowsingDataRemover currently in the process of removing
// data?

Powered by Google App Engine
This is Rietveld 408576698