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

Unified Diff: content/browser/browsing_data/conditional_cache_deletion_helper.cc

Issue 2757923002: Move StoragePartitionHttpCacheDataRemover to content/ (Closed)
Patch Set: Rebase. Created 3 years, 9 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: content/browser/browsing_data/conditional_cache_deletion_helper.cc
diff --git a/components/browsing_data/content/conditional_cache_deletion_helper.cc b/content/browser/browsing_data/conditional_cache_deletion_helper.cc
similarity index 82%
rename from components/browsing_data/content/conditional_cache_deletion_helper.cc
rename to content/browser/browsing_data/conditional_cache_deletion_helper.cc
index f0f500e9633b0f61dd0a3aedbe028386e27e6af8..de0e59ec8506c1803c4f45bd89b4356adbc444eb 100644
--- a/components/browsing_data/content/conditional_cache_deletion_helper.cc
+++ b/content/browser/browsing_data/conditional_cache_deletion_helper.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/browsing_data/content/conditional_cache_deletion_helper.h"
+#include "content/browser/browsing_data/conditional_cache_deletion_helper.h"
#include "base/callback.h"
#include "base/location.h"
@@ -24,16 +24,16 @@ bool EntryPredicateFromURLsAndTime(
} // namespace
-namespace browsing_data {
+namespace content {
ConditionalCacheDeletionHelper::ConditionalCacheDeletionHelper(
disk_cache::Backend* cache,
const base::Callback<bool(const disk_cache::Entry*)>& condition)
- : cache_(cache),
- condition_(condition),
- current_entry_(nullptr),
- previous_entry_(nullptr) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
+ : cache_(cache),
+ condition_(condition),
+ current_entry_(nullptr),
+ previous_entry_(nullptr) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
}
// static
@@ -42,16 +42,14 @@ ConditionalCacheDeletionHelper::CreateURLAndTimeCondition(
const base::Callback<bool(const GURL&)>& url_predicate,
const base::Time& begin_time,
const base::Time& end_time) {
- return base::Bind(
- &EntryPredicateFromURLsAndTime,
- url_predicate,
- begin_time.is_null() ? base::Time() : begin_time,
- end_time.is_null() ? base::Time::Max() : end_time);
+ return base::Bind(&EntryPredicateFromURLsAndTime, url_predicate,
+ begin_time.is_null() ? base::Time() : begin_time,
+ end_time.is_null() ? base::Time::Max() : end_time);
}
int ConditionalCacheDeletionHelper::DeleteAndDestroySelfWhenFinished(
const net::CompletionCallback& completion_callback) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
completion_callback_ = completion_callback;
iterator_ = cache_->CreateIterator();
@@ -60,8 +58,7 @@ int ConditionalCacheDeletionHelper::DeleteAndDestroySelfWhenFinished(
return net::ERR_IO_PENDING;
}
-ConditionalCacheDeletionHelper::~ConditionalCacheDeletionHelper() {
-}
+ConditionalCacheDeletionHelper::~ConditionalCacheDeletionHelper() {}
void ConditionalCacheDeletionHelper::IterateOverEntries(int error) {
while (error != net::ERR_IO_PENDING) {
@@ -93,4 +90,4 @@ void ConditionalCacheDeletionHelper::IterateOverEntries(int error) {
}
}
-} // namespace browsing_data
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698