Index: net/disk_cache/simple/simple_disk_format.h |
diff --git a/net/disk_cache/simple/simple_disk_format.h b/net/disk_cache/simple/simple_disk_format.h |
index a48b78fde59efa0208f9ef0431ddcb7912367540..18dfe9661ad00402c6407254dc58e831d4e48e33 100644 |
--- a/net/disk_cache/simple/simple_disk_format.h |
+++ b/net/disk_cache/simple/simple_disk_format.h |
@@ -56,12 +56,15 @@ namespace SimpleIndexFile { |
uint64 initial_magic_number; |
uint32 version; |
uint64 number_of_entries; |
+ uint64 cache_size; // Total cache storage size in bytes. |
}; |
// We must keep this struct a POD. |
struct EntryMetadata { |
EntryMetadata(); |
- EntryMetadata(const std::string& hash_key_p, base::Time last_used_time_p); |
+ EntryMetadata(const std::string& hash_key_p, |
+ base::Time last_used_time_p, |
+ uint64 entry_size_p); |
base::Time GetLastUsedTime() const; |
std::string GetHashKey() const; |
@@ -79,6 +82,8 @@ namespace SimpleIndexFile { |
// If you want to make calculations/comparisons, you should use the |
// base::Time() class. Use the GetLastUsedTime() method above. |
int64 last_used_time; |
+ |
+ uint64 entry_size; // Storage size in bytes. |
}; |
const size_t kEntryMetadataSize = sizeof(EntryMetadata); |