Index: net/http/http_cache.h |
diff --git a/net/http/http_cache.h b/net/http/http_cache.h |
index 2b04e8112dbdeda53e7e2cbef8d7a4569bb8e808..388d4eda67851eac90b8f93ec13a9096e242122e 100644 |
--- a/net/http/http_cache.h |
+++ b/net/http/http_cache.h |
@@ -195,6 +195,13 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory, |
virtual HttpCache* GetCache() OVERRIDE; |
virtual HttpNetworkSession* GetSession() OVERRIDE; |
+ // Reset the network layer to allow for tests that probe |
rvargas (doing something else)
2014/01/23 23:24:49
nit: resets
Randy Smith (Not in Mondays)
2014/01/25 21:11:31
Done.
|
+ // network changes (e.g. host unreachable). The old network layer is |
+ // returned to allow for filter patterns that only intercept |
+ // some creation requests. Note ownership exchange. |
+ scoped_ptr<HttpTransactionFactory> SetNetworkLayerForTesting( |
+ scoped_ptr<HttpTransactionFactory> new_network_layer); |
+ |
protected: |
// Disk cache entry data indices. |
enum { |
@@ -384,7 +391,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory, |
const scoped_ptr<SSLHostInfoFactoryAdaptor> ssl_host_info_factory_; |
- const scoped_ptr<HttpTransactionFactory> network_layer_; |
+ scoped_ptr<HttpTransactionFactory> network_layer_; |
+ |
scoped_ptr<disk_cache::Backend> disk_cache_; |
// The set of active entries indexed by cache key. |