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

Unified Diff: net/disk_cache/mem_backend_impl.cc

Issue 8798001: base::Bind: Convert browsing_data_remover. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « net/disk_cache/mem_backend_impl.h ('k') | net/http/mock_http_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mem_backend_impl.cc
diff --git a/net/disk_cache/mem_backend_impl.cc b/net/disk_cache/mem_backend_impl.cc
index 2c5404968372d25e1952a7fc437a5cb8c9f9a51a..d760b390e770d2fda34a335a6b875af40869db9e 100644
--- a/net/disk_cache/mem_backend_impl.cc
+++ b/net/disk_cache/mem_backend_impl.cc
@@ -175,6 +175,13 @@ int MemBackendImpl::DoomAllEntries(OldCompletionCallback* callback) {
return net::ERR_FAILED;
}
+int MemBackendImpl::DoomAllEntries(const net::CompletionCallback& callback) {
+ if (DoomAllEntries())
+ return net::OK;
+
+ return net::ERR_FAILED;
+}
+
int MemBackendImpl::DoomEntriesBetween(const base::Time initial_time,
const base::Time end_time,
OldCompletionCallback* callback) {
@@ -184,6 +191,15 @@ int MemBackendImpl::DoomEntriesBetween(const base::Time initial_time,
return net::ERR_FAILED;
}
+int MemBackendImpl::DoomEntriesBetween(
+ const base::Time initial_time, const base::Time end_time,
+ const net::CompletionCallback& callback) {
+ if (DoomEntriesBetween(initial_time, end_time))
+ return net::OK;
+
+ return net::ERR_FAILED;
+}
+
int MemBackendImpl::DoomEntriesSince(const base::Time initial_time,
OldCompletionCallback* callback) {
if (DoomEntriesSince(initial_time))
« no previous file with comments | « net/disk_cache/mem_backend_impl.h ('k') | net/http/mock_http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698