Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: net/disk_cache/storage_block.h

Issue 17507006: Disk cache v3 ref2 Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Incl IndexTable cl Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/mapped_file_win.cc ('k') | net/disk_cache/storage_block-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « net/disk_cache/mapped_file_win.cc ('k') | net/disk_cache/storage_block-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698