| Index: net/disk_cache/mem_entry_impl.h
|
| ===================================================================
|
| --- net/disk_cache/mem_entry_impl.h (revision 76773)
|
| +++ net/disk_cache/mem_entry_impl.h (working copy)
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "base/hash_tables.h"
|
| #include "base/scoped_ptr.h"
|
| +#include "net/base/net_log.h"
|
| #include "net/disk_cache/disk_cache.h"
|
| #include "testing/gtest/include/gtest/gtest_prod.h"
|
|
|
| @@ -54,7 +55,7 @@
|
|
|
| // Performs the initialization of a EntryImpl that will be added to the
|
| // cache.
|
| - bool CreateEntry(const std::string& key);
|
| + bool CreateEntry(const std::string& key, net::NetLog* net_log);
|
|
|
| // Permanently destroys this entry.
|
| void InternalDoom();
|
| @@ -82,6 +83,10 @@
|
| return parent_ ? kChildEntry : kParentEntry;
|
| }
|
|
|
| + net::BoundNetLog& net_log() {
|
| + return net_log_;
|
| + }
|
| +
|
| // Entry interface.
|
| virtual void Doom();
|
| virtual void Close();
|
| @@ -113,6 +118,12 @@
|
|
|
| ~MemEntryImpl();
|
|
|
| + int InternalReadData(int index, int offset, net::IOBuffer* buf, int buf_len);
|
| + int InternalWriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
|
| + bool truncate);
|
| + int InternalReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len);
|
| + int InternalWriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len);
|
| +
|
| // Old Entry interface.
|
| int GetAvailableRange(int64 offset, int len, int64* start);
|
|
|
| @@ -163,6 +174,8 @@
|
| MemBackendImpl* backend_; // Back pointer to the cache.
|
| bool doomed_; // True if this entry was removed from the cache.
|
|
|
| + net::BoundNetLog net_log_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(MemEntryImpl);
|
| };
|
|
|
|
|