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

Unified Diff: net/http/http_cache.h

Issue 119189: Add two small features to the HttpCache for benchmarking/debugging.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.h
===================================================================
--- net/http/http_cache.h (revision 17638)
+++ net/http/http_cache.h (working copy)
@@ -48,7 +48,10 @@
RECORD,
// Playback mode replays from a cache without considering any
// standard invalidations.
- PLAYBACK
+ PLAYBACK,
+ // Disables reads and writes from the cache.
+ // Equivalent to setting LOAD_DISABLE_CACHE on every request.
+ DISABLE
};
// Initialize the cache from the directory where its data is stored. The
@@ -103,6 +106,9 @@
void set_type(CacheType type) { type_ = type; }
CacheType type() { return type_; }
+ // Close All Idle Sockets. This is for debugging.
+ void CloseIdleConnections();
+
private:
// Types --------------------------------------------------------------------
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698