summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/storage_block.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/storage_block.h')
-rw-r--r--net/disk_cache/storage_block.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/disk_cache/storage_block.h b/net/disk_cache/storage_block.h
index 1c02756..78d51db 100644
--- a/net/disk_cache/storage_block.h
+++ b/net/disk_cache/storage_block.h
@@ -43,9 +43,13 @@ class StorageBlock : public FileBlock {
// Allows the overide of dummy values passed on the constructor.
bool LazyInit(MappedFile* file, Addr address);
- // Sets the internal storage to share the momory provided by other instance.
+ // Sets the internal storage to share the memory provided by other instance.
void SetData(T* other);
+ // Deletes the data, even if it was modified and not saved. This object must
+ // own the memory buffer (it cannot be shared).
+ void Discard();
+
// Sets the object to lazily save the in-memory data on destruction.
void set_modified();