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

Unified Diff: net/http/http_cache.h

Issue 10909136: Http Cache: Add code for simulating an infinite HTTP cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | net/http/http_cache_transaction.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.h
===================================================================
--- net/http/http_cache.h (revision 155282)
+++ net/http/http_cache.h (working copy)
@@ -31,6 +31,7 @@
#include "net/base/load_states.h"
#include "net/base/net_export.h"
#include "net/http/http_transaction_factory.h"
+#include "net/http/infinite_cache.h"
class GURL;
@@ -190,6 +191,9 @@
// referred to by |url| and |http_method|.
void OnExternalCacheHit(const GURL& url, const std::string& http_method);
+ // Initializes the Infinite Cache, if selected by the field trial.
+ void InitializeInfiniteCache(const FilePath& path);
+
// HttpTransactionFactory implementation:
virtual int CreateTransaction(scoped_ptr<HttpTransaction>* trans,
HttpTransactionDelegate* delegate) OVERRIDE;
@@ -215,6 +219,7 @@
class Transaction;
class WorkItem;
friend class Transaction;
+ friend class InfiniteCache;
struct PendingOp; // Info for an entry under construction.
typedef std::list<Transaction*> TransactionList;
@@ -393,6 +398,8 @@
scoped_ptr<PlaybackCacheMap> playback_cache_map_;
+ InfiniteCache infinite_cache_;
+
DISALLOW_COPY_AND_ASSIGN(HttpCache);
};
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | net/http/http_cache_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698