summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/storage_block.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 18:51:41 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 18:51:41 +0000
commit66f16b11638993ead4028e853d5565a74b9acba3 (patch)
tree2166dd5ebb9d17d32f7fdd984425e15d58c66f0c /net/disk_cache/storage_block.h
parentd861c764cf88c5d99327ef15bb603373186c5bda (diff)
downloadchromium_src-66f16b11638993ead4028e853d5565a74b9acba3.zip
chromium_src-66f16b11638993ead4028e853d5565a74b9acba3.tar.gz
chromium_src-66f16b11638993ead4028e853d5565a74b9acba3.tar.bz2
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
Diffstat (limited to 'net/disk_cache/storage_block.h')
-rw-r--r--net/disk_cache/storage_block.h6
1 files changed, 6 insertions, 0 deletions
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.