Index: net/disk_cache/storage_block.h |
=================================================================== |
--- net/disk_cache/storage_block.h (revision 232523) |
+++ net/disk_cache/storage_block.h (working copy) |
@@ -30,6 +30,7 @@ |
template<typename T> |
class StorageBlock : public FileBlock { |
public: |
+ StorageBlock(); |
StorageBlock(MappedFile* file, Addr address); |
virtual ~StorageBlock(); |
@@ -60,12 +61,18 @@ |
// Gets a pointer to the internal storage (allocates storage if needed). |
T* Data(); |
+ // Returns the internal storage, if any. |
+ T* ReleaseData(); |
+ |
// Returns true if there is data associated with this object. |
bool HasData() const; |
// Returns true if the internal hash is correct. |
bool VerifyHash() const; |
+ // Updates the internal hash value. |
+ void UpdateHash(); |
+ |
// Returns true if this object owns the data buffer, false if it is shared. |
bool own_data() const; |