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

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: 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 5c31568c53b4ef94fe265d9a27cffe1555779fbf..2b91b0b20117da4bb5e65dfb4cbe29a255b7219f 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -442,6 +442,13 @@ HttpNetworkSession* HttpCache::GetSession() {
return network->GetSession();
}
+scoped_ptr<HttpTransactionFactory> HttpCache::SetNetworkLayerForTesting(
+ 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,

Powered by Google App Engine
This is Rietveld 408576698