struct HttpRequestInfo;
class NET_EXPORT HttpCache : public HttpTransactionFactory,
- public base::SupportsWeakPtr<HttpCache>,
NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
// The cache mode of operation.
virtual HttpCache* GetCache() OVERRIDE;
virtual HttpNetworkSession* GetSession() OVERRIDE;
+ base::WeakPtr<HttpCache> GetWeakPtr() { return weak_factory_.GetWeakPtr(); }
+
// Resets the network layer to allow for tests that probe
// network changes (e.g. host unreachable). The old network layer is
// returned to allow for filter patterns that only intercept
scoped_ptr<PlaybackCacheMap> playback_cache_map_;
+ base::WeakPtrFactory<HttpCache> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(HttpCache);
};