Index: net/disk_cache/entry_impl.h |
diff --git a/net/disk_cache/entry_impl.h b/net/disk_cache/entry_impl.h |
index d24e861e95eff26779bc18a120e89a4e3ba83a6c..e56fc6be61e17e6827dce68d7f7a902ede675ace 100644 |
--- a/net/disk_cache/entry_impl.h |
+++ b/net/disk_cache/entry_impl.h |
@@ -33,28 +33,6 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> { |
EntryImpl(BackendImpl* backend, Addr address, bool read_only); |
- // Entry interface. |
- virtual void Doom(); |
- virtual void Close(); |
- virtual std::string GetKey() const; |
- virtual base::Time GetLastUsed() const; |
- virtual base::Time GetLastModified() const; |
- virtual int32 GetDataSize(int index) const; |
- virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, |
- net::CompletionCallback* completion_callback); |
- virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, |
- net::CompletionCallback* completion_callback, |
- bool truncate); |
- virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, |
- net::CompletionCallback* completion_callback); |
- virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, |
- net::CompletionCallback* completion_callback); |
- virtual int GetAvailableRange(int64 offset, int len, int64* start, |
- CompletionCallback* callback); |
- virtual bool CouldBeSparse() const; |
- virtual void CancelSparseIO(); |
- virtual int ReadyForSparseIO(net::CompletionCallback* completion_callback); |
- |
// Background implementation of the Entry interface. |
void DoomImpl(); |
int ReadDataImpl(int index, int offset, net::IOBuffer* buf, int buf_len, |
@@ -138,6 +116,28 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> { |
const net::BoundNetLog& net_log() const; |
+ // Entry interface. |
+ virtual void Doom(); |
+ virtual void Close(); |
+ virtual std::string GetKey() const; |
+ virtual base::Time GetLastUsed() const; |
+ virtual base::Time GetLastModified() const; |
+ virtual int32 GetDataSize(int index) const; |
+ virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, |
+ net::CompletionCallback* completion_callback); |
+ virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, |
+ net::CompletionCallback* completion_callback, |
+ bool truncate); |
+ virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, |
+ net::CompletionCallback* completion_callback); |
+ virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, |
+ net::CompletionCallback* completion_callback); |
+ virtual int GetAvailableRange(int64 offset, int len, int64* start, |
+ CompletionCallback* callback); |
+ virtual bool CouldBeSparse() const; |
+ virtual void CancelSparseIO(); |
+ virtual int ReadyForSparseIO(net::CompletionCallback* completion_callback); |
+ |
private: |
enum { |
kNumStreams = 3 |