summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/backend_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/backend_impl.cc')
-rw-r--r--net/disk_cache/backend_impl.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 1c6c92a..cf9c6e1 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -1415,6 +1415,12 @@ int BackendImpl::DoomAllEntries(OldCompletionCallback* callback) {
return net::ERR_IO_PENDING;
}
+int BackendImpl::DoomAllEntries(const net::CompletionCallback& callback) {
+ DCHECK(!callback.is_null());
+ background_queue_.DoomAllEntries(callback);
+ return net::ERR_IO_PENDING;
+}
+
int BackendImpl::DoomEntriesBetween(const base::Time initial_time,
const base::Time end_time,
OldCompletionCallback* callback) {
@@ -1423,6 +1429,14 @@ int BackendImpl::DoomEntriesBetween(const base::Time initial_time,
return net::ERR_IO_PENDING;
}
+int BackendImpl::DoomEntriesBetween(const base::Time initial_time,
+ const base::Time end_time,
+ const net::CompletionCallback& callback) {
+ DCHECK(!callback.is_null());
+ background_queue_.DoomEntriesBetween(initial_time, end_time, callback);
+ return net::ERR_IO_PENDING;
+}
+
int BackendImpl::DoomEntriesSince(const base::Time initial_time,
OldCompletionCallback* callback) {
DCHECK(callback);