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

Unified Diff: net/disk_cache/mem_backend_impl.cc

Issue 8794003: base::Bind: Convert disk_cache_based_ssl_host_info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an OldCompletionCallback. 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
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 f08b316465010e377740da26234ea444e08c3110..2c5404968372d25e1952a7fc437a5cb8c9f9a51a 100644
--- a/net/disk_cache/mem_backend_impl.cc
+++ b/net/disk_cache/mem_backend_impl.cc
@@ -136,6 +136,14 @@ int MemBackendImpl::OpenEntry(const std::string& key, Entry** entry,
return net::ERR_FAILED;
}
+int MemBackendImpl::OpenEntry(const std::string& key, Entry** entry,
+ const net::CompletionCallback& callback) {
+ if (OpenEntry(key, entry))
+ return net::OK;
+
+ return net::ERR_FAILED;
+}
+
int MemBackendImpl::CreateEntry(const std::string& key, Entry** entry,
OldCompletionCallback* callback) {
if (CreateEntry(key, entry))
@@ -144,6 +152,14 @@ int MemBackendImpl::CreateEntry(const std::string& key, Entry** entry,
return net::ERR_FAILED;
}
+int MemBackendImpl::CreateEntry(const std::string& key, Entry** entry,
+ const net::CompletionCallback& callback) {
+ if (CreateEntry(key, entry))
+ return net::OK;
+
+ return net::ERR_FAILED;
+}
+
int MemBackendImpl::DoomEntry(const std::string& key,
OldCompletionCallback* callback) {
if (DoomEntry(key))

Powered by Google App Engine
This is Rietveld 408576698