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

Unified Diff: net/disk_cache/storage_block.h

Issue 155951: Disk cache: Fix handling of invalid entries that are detected... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months 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/rankings.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 21084)
+++ net/disk_cache/storage_block.h (working copy)
@@ -43,9 +43,13 @@
// 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();
« no previous file with comments | « net/disk_cache/rankings.cc ('k') | net/disk_cache/storage_block-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698