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

Unified Diff: net/http/http_cache.h

Issue 20737002: Change the API of disk_cache::CreateCacheBackend to use scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows specific file. Created 7 years, 5 months 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/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index c4012654eaa966425a9cc93c2e51b669ed4ebcb9..db2db6906d5ad5a0125f70496f0109b3ae44564a 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -89,7 +89,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
// The implementation must not access the factory object after invoking the
// |callback| because the object can be deleted from within the callback.
virtual int CreateBackend(NetLog* net_log,
- disk_cache::Backend** backend,
+ scoped_ptr<disk_cache::Backend>* backend,
const CompletionCallback& callback) = 0;
};
@@ -109,7 +109,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
// BackendFactory implementation.
virtual int CreateBackend(NetLog* net_log,
- disk_cache::Backend** backend,
+ scoped_ptr<disk_cache::Backend>* backend,
const CompletionCallback& callback) OVERRIDE;
private:

Powered by Google App Engine
This is Rietveld 408576698