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

Unified Diff: net/http/http_cache.cc

Issue 138513002: Plumb network stack information about existence of cached copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r248769. Created 6 years, 10 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
« no previous file with comments | « net/http/http_cache.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index 6c5fda8d03d057a10fa17fe7a01052d39fa2749c..f04df6d0ea3c1ae6af82978ad0a345f79d9c391c 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -461,6 +461,14 @@ HttpNetworkSession* HttpCache::GetSession() {
return network->GetSession();
}
+scoped_ptr<HttpTransactionFactory>
+HttpCache::SetHttpNetworkTransactionFactoryForTesting(
+ scoped_ptr<HttpTransactionFactory> new_network_layer) {
+ scoped_ptr<HttpTransactionFactory> old_network_layer(network_layer_.Pass());
+ network_layer_ = new_network_layer.Pass();
+ return old_network_layer.Pass();
+}
+
//-----------------------------------------------------------------------------
int HttpCache::CreateBackend(disk_cache::Backend** backend,
« no previous file with comments | « net/http/http_cache.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698