| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ |
| 6 #define NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 const net::BoundNetLog& net_log() const; | 77 const net::BoundNetLog& net_log() const; |
| 78 | 78 |
| 79 // Entry interface. | 79 // Entry interface. |
| 80 void Doom() override; | 80 void Doom() override; |
| 81 void Close() override; | 81 void Close() override; |
| 82 std::string GetKey() const override; | 82 std::string GetKey() const override; |
| 83 base::Time GetLastUsed() const override; | 83 base::Time GetLastUsed() const override; |
| 84 base::Time GetLastModified() const override; | 84 base::Time GetLastModified() const override; |
| 85 int32 GetDataSize(int index) const override; | 85 int32 GetDataSize(int index) const override; |
| 86 int GetEntrySize() const override; |
| 86 int ReadData(int index, | 87 int ReadData(int index, |
| 87 int offset, | 88 int offset, |
| 88 IOBuffer* buf, | 89 IOBuffer* buf, |
| 89 int buf_len, | 90 int buf_len, |
| 90 const CompletionCallback& callback) override; | 91 const CompletionCallback& callback) override; |
| 91 int WriteData(int index, | 92 int WriteData(int index, |
| 92 int offset, | 93 int offset, |
| 93 IOBuffer* buf, | 94 IOBuffer* buf, |
| 94 int buf_len, | 95 int buf_len, |
| 95 const CompletionCallback& callback, | 96 const CompletionCallback& callback, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // scoped_ptr<SparseControlV3> sparse_; // Support for sparse entries. | 212 // scoped_ptr<SparseControlV3> sparse_; // Support for sparse entries. |
| 212 | 213 |
| 213 net::BoundNetLog net_log_; | 214 net::BoundNetLog net_log_; |
| 214 | 215 |
| 215 DISALLOW_COPY_AND_ASSIGN(EntryImplV3); | 216 DISALLOW_COPY_AND_ASSIGN(EntryImplV3); |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace disk_cache | 219 } // namespace disk_cache |
| 219 | 220 |
| 220 #endif // NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ | 221 #endif // NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ |
| OLD | NEW |