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

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: Incorporated rest of Matt's comments. Created 6 years, 11 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.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index 4402da8cab4ea9ea49afc47c0afa4bf82ed3fea2..e0a4375feae87dbc1c0918cabfee64c33f030a50 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -467,6 +467,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,
« content/test/content_browser_test.cc ('K') | « net/http/http_cache.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698