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

Unified Diff: net/disk_cache/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: Test fix. 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/backend_impl.cc
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 14a27228624c6668ba7670cb0f416de342459521..1c6c92a4769976da07b7b107428dde22f54104b6 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -1381,6 +1381,13 @@ int BackendImpl::OpenEntry(const std::string& key, Entry** entry,
return net::ERR_IO_PENDING;
}
+int BackendImpl::OpenEntry(const std::string& key, Entry** entry,
+ const net::CompletionCallback& callback) {
+ DCHECK(!callback.is_null());
+ background_queue_.OpenEntry(key, entry, callback);
+ return net::ERR_IO_PENDING;
+}
+
int BackendImpl::CreateEntry(const std::string& key, Entry** entry,
OldCompletionCallback* callback) {
DCHECK(callback);
@@ -1388,6 +1395,13 @@ int BackendImpl::CreateEntry(const std::string& key, Entry** entry,
return net::ERR_IO_PENDING;
}
+int BackendImpl::CreateEntry(const std::string& key, Entry** entry,
+ const net::CompletionCallback& callback) {
+ DCHECK(!callback.is_null());
+ background_queue_.CreateEntry(key, entry, callback);
+ return net::ERR_IO_PENDING;
+}
+
int BackendImpl::DoomEntry(const std::string& key,
OldCompletionCallback* callback) {
DCHECK(callback);

Powered by Google App Engine
This is Rietveld 408576698