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

Unified Diff: net/disk_cache/mem_backend_impl.h

Issue 6613027: Adds memory cache logging, and updates disk cache logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Oops Created 9 years, 9 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 | « net/disk_cache/entry_impl.cc ('k') | net/disk_cache/mem_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mem_backend_impl.h
===================================================================
--- net/disk_cache/mem_backend_impl.h (revision 78400)
+++ net/disk_cache/mem_backend_impl.h (working copy)
@@ -13,6 +13,10 @@
#include "net/disk_cache/disk_cache.h"
#include "net/disk_cache/mem_rankings.h"
+namespace net {
+class NetLog;
+} // namespace net
+
namespace disk_cache {
class MemEntryImpl;
@@ -21,7 +25,7 @@
// the operations of the cache without writing to disk.
class MemBackendImpl : public Backend {
public:
- MemBackendImpl();
+ explicit MemBackendImpl(net::NetLog* net_log);
~MemBackendImpl();
// Returns an instance of a Backend implemented only in memory. The returned
@@ -29,7 +33,7 @@
// size the cache can grow to. If zero is passed in as max_bytes, the cache
// will determine the value to use based on the available memory. The returned
// pointer can be NULL if a fatal error is found.
- static Backend* CreateBackend(int max_bytes);
+ static Backend* CreateBackend(int max_bytes, net::NetLog* net_log);
// Performs general initialization for this current instance of the cache.
bool Init();
@@ -104,6 +108,8 @@
int32 max_size_; // Maximum data size for this instance.
int32 current_size_;
+ net::NetLog* net_log_;
+
DISALLOW_COPY_AND_ASSIGN(MemBackendImpl);
};
« no previous file with comments | « net/disk_cache/entry_impl.cc ('k') | net/disk_cache/mem_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698