summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r--net/http/http_cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 35f2e47..6e82876 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -32,6 +32,7 @@
#include "net/base/net_export.h"
#include "net/http/http_network_session.h"
#include "net/http/http_transaction_factory.h"
+#include "net/http/infinite_cache.h"
class GURL;
@@ -183,6 +184,9 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
// Initializes the Infinite Cache, if selected by the field trial.
void InitializeInfiniteCache(const FilePath& path);
+ // Returns a pointer to the Infinite Cache.
+ InfiniteCache* infinite_cache() { return &infinite_cache_; }
+
// HttpTransactionFactory implementation:
virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans,
HttpTransactionDelegate* delegate) OVERRIDE;
@@ -208,6 +212,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
class Transaction;
class WorkItem;
friend class Transaction;
+ friend class InfiniteCache;
struct PendingOp; // Info for an entry under construction.
typedef std::list<Transaction*> TransactionList;
@@ -386,6 +391,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
scoped_ptr<PlaybackCacheMap> playback_cache_map_;
+ InfiniteCache infinite_cache_;
+
DISALLOW_COPY_AND_ASSIGN(HttpCache);
};