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

Unified Diff: net/disk_cache/storage_block.h

Issue 159643: Disk cache: Remove remaining uses of RankingsNode.pointer.... (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
Index: net/disk_cache/storage_block.h
===================================================================
--- net/disk_cache/storage_block.h (revision 21923)
+++ net/disk_cache/storage_block.h (working copy)
@@ -50,6 +50,9 @@
// own the memory buffer (it cannot be shared).
void Discard();
+ // Stops sharing the data with another object.
+ void StopSharingData();
+
// Sets the object to lazily save the in-memory data on destruction.
void set_modified();
@@ -59,6 +62,9 @@
// Returns true if there is data associated with this object.
bool HasData() const;
+ // Returns true if this object owns the data buffer, false if it is shared.
+ bool own_data() const;
+
const Addr address() const;
// Loads and store the data.

Powered by Google App Engine
This is Rietveld 408576698