diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-14 18:35:21 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-14 18:35:21 +0000 |
commit | fdbaecb0456642a5148b8f5caa7b6bbc27a7ccff (patch) | |
tree | bcb93a97882aa7e9f014ad02dd20c8142b24b2c7 /net/http/http_cache.h | |
parent | d3a8cfcbb8703ab3c8d8b58bc4fa8e7d7c011a1f (diff) | |
download | chromium_src-fdbaecb0456642a5148b8f5caa7b6bbc27a7ccff.zip chromium_src-fdbaecb0456642a5148b8f5caa7b6bbc27a7ccff.tar.gz chromium_src-fdbaecb0456642a5148b8f5caa7b6bbc27a7ccff.tar.bz2 |
Http Cache: Add code for simulating an infinite HTTP cache.
This is not completely wired yet.
BUg=147383
TEST=net_unittests
Review URL: https://chromiumcodereview.appspot.com/10909136
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r-- | net/http/http_cache.h | 7 |
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); }; |