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

Unified Diff: net/disk_cache/addr.h

Issue 53313004: Disk cache v3: The main index table. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | net/disk_cache/disk_format_base.h » ('j') | net/disk_cache/v3/index_table.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | net/disk_cache/disk_format_base.h » ('j') | net/disk_cache/v3/index_table.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698