diff options
Diffstat (limited to 'net/disk_cache/entry_impl.h')
-rw-r--r-- | net/disk_cache/entry_impl.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/net/disk_cache/entry_impl.h b/net/disk_cache/entry_impl.h index 4bb4d04..f5961f9 100644 --- a/net/disk_cache/entry_impl.h +++ b/net/disk_cache/entry_impl.h @@ -21,6 +21,14 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> { friend class base::RefCounted<EntryImpl>; friend class SparseControl; public: + enum Operation { + kRead, + kWrite, + kSparseRead, + kSparseWrite, + kAsyncIO + }; + EntryImpl(BackendImpl* backend, Addr address); // Entry interface. @@ -99,18 +107,14 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> { // the upgrade tool. void SetTimes(base::Time last_used, base::Time last_modified); + // Generates a histogram for the time spent working on this operation. + void ReportIOTime(Operation op, const base::Time& start); + private: enum { kNumStreams = 3 }; - enum Operation { - kRead, - kWrite, - kSparseRead, - kSparseWrite - }; - ~EntryImpl(); // Initializes the storage for an internal or external data block. @@ -166,9 +170,6 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> { // actual cleanup. void GetData(int index, char** buffer, Addr* address); - // Generates a histogram for the time spent working on this operation. - void ReportIOTime(Operation op, const base::Time& start); - // Logs this entry to the internal trace buffer. void Log(const char* msg); |