summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/disk_format.h')
-rw-r--r--net/disk_cache/disk_format.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/disk_cache/disk_format.h b/net/disk_cache/disk_format.h
index d1f7fed..c98fc34 100644
--- a/net/disk_cache/disk_format.h
+++ b/net/disk_cache/disk_format.h
@@ -123,7 +123,8 @@ struct EntryStore {
CacheAddr long_key; // Optional address of a long key.
int32 data_size[4]; // We can store up to 4 data streams for each
CacheAddr data_addr[4]; // entry.
- int32 pad[6];
+ uint32 flags; // Any combination of EntryFlags.
+ int32 pad[5];
char key[256 - 24 * 4]; // null terminated
};
@@ -138,6 +139,12 @@ enum EntryState {
ENTRY_DOOMED // The entry was doomed.
};
+// Flags that can be applied to an entry.
+enum EntryFlags {
+ PARENT_ENTRY = 1, // This entry has children (sparse) entries.
+ CHILD_ENTRY = 1 << 1 // Child entry that stores sparse data.
+};
+
#pragma pack(push, 4)
// Rankings information for a given entry.
struct RankingsNode {