summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mem_backend_impl.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 19:11:51 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 19:11:51 +0000
commit8ebf9b135df2b2a79cf130d39a48185b8f851338 (patch)
treeb1f393ed627e91bf098bffff4fac3b9f3696e59b /net/disk_cache/mem_backend_impl.cc
parent0b349ba539020caa0201c6523813a16fa41a3448 (diff)
downloadchromium_src-8ebf9b135df2b2a79cf130d39a48185b8f851338.zip
chromium_src-8ebf9b135df2b2a79cf130d39a48185b8f851338.tar.gz
chromium_src-8ebf9b135df2b2a79cf130d39a48185b8f851338.tar.bz2
base::Bind: Convert disk_cache_based_ssl_host_info.
BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113249 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/mem_backend_impl.cc')
-rw-r--r--net/disk_cache/mem_backend_impl.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/disk_cache/mem_backend_impl.cc b/net/disk_cache/mem_backend_impl.cc
index f08b316..2c54049 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))