Index: net/disk_cache/addr.h |
=================================================================== |
--- net/disk_cache/addr.h (revision 231691) |
+++ net/disk_cache/addr.h (working copy) |
@@ -116,6 +116,11 @@ |
return Addr(kInitializedMask + (BLOCK_EVICTED << kFileTypeOffset) + value); |
} |
+ // Returns the part of the address that could be stored by the index. |
+ uint32 ToIndexEntryAddress() const { |
+ return value_ & (kFileSelectorMask | kStartBlockMask); |
+ } |
+ |
static int BlockSizeForFileType(FileType file_type) { |
switch (file_type) { |
case RANKINGS: |