diff options
Diffstat (limited to 'net/disk_cache/mem_backend_impl.h')
-rw-r--r-- | net/disk_cache/mem_backend_impl.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/disk_cache/mem_backend_impl.h b/net/disk_cache/mem_backend_impl.h index 9b920ac5..01f68d3 100644 --- a/net/disk_cache/mem_backend_impl.h +++ b/net/disk_cache/mem_backend_impl.h @@ -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 @@ class MemEntryImpl; // 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 @@ class MemBackendImpl : public Backend { // 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 @@ class MemBackendImpl : public Backend { int32 max_size_; // Maximum data size for this instance. int32 current_size_; + net::NetLog* net_log_; + DISALLOW_COPY_AND_ASSIGN(MemBackendImpl); }; |