From 66f16b11638993ead4028e853d5565a74b9acba3 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Thu, 30 Jul 2009 18:51:41 +0000 Subject: Disk cache: Remove remaining uses of RankingsNode.pointer. We now have a map of open entries so we don't need to do a lookup through the rankings node anymore. This simplifies the 64 bit version of the code. BUG=17881 TEST=unittests Review URL: http://codereview.chromium.org/159643 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22074 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/storage_block.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net/disk_cache/storage_block.h') diff --git a/net/disk_cache/storage_block.h b/net/disk_cache/storage_block.h index 78d51db..0d94b82 100644 --- a/net/disk_cache/storage_block.h +++ b/net/disk_cache/storage_block.h @@ -50,6 +50,9 @@ class StorageBlock : public FileBlock { // 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 @@ class StorageBlock : public FileBlock { // 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. -- cgit v1.1