Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1440)

Unified Diff: net/disk_cache/disk_format.h

Issue 8658001: Disk cache: Add a hash to the entry's internal data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/disk_format.h
===================================================================
--- net/disk_cache/disk_format.h (revision 110637)
+++ net/disk_cache/disk_format.h (working copy)
@@ -123,7 +123,8 @@
int32 data_size[4]; // We can store up to 4 data streams for each
CacheAddr data_addr[4]; // entry.
uint32 flags; // Any combination of EntryFlags.
- int32 pad[5];
+ int32 pad[4];
+ uint32 self_hash; // The hash of EntryStore up to this point.
gavinp 2011/11/29 15:47:42 Why after the pad, and not before? What do we exp
rvargas (doing something else) 2011/11/29 19:08:56 Yes, that's it. Pad is set to zero, and the expect
char key[256 - 24 * 4]; // null terminated
};
@@ -153,7 +154,7 @@
CacheAddr prev; // LRU list.
CacheAddr contents; // Address of the EntryStore.
int32 dirty; // The entry is being modifyied.
- int32 dummy; // Old files may have a pointer here.
+ uint32 self_hash; // RankingsNode's hash.
};
#pragma pack(pop)

Powered by Google App Engine
This is Rietveld 408576698