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

Unified Diff: net/disk_cache/flash/format.h

Issue 11316178: Added CacheEntry implementation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Misc. Created 8 years 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/flash/format.h
diff --git a/net/disk_cache/flash/format.h b/net/disk_cache/flash/format.h
index d32344d92fac169993129a387fd0bb5eac67b646..660c614f033fd677b5c9f696356cefa5374be91c 100644
--- a/net/disk_cache/flash/format.h
+++ b/net/disk_cache/flash/format.h
@@ -22,6 +22,11 @@ const size_t kFlashMaxEntryCount = kFlashSegmentSize / kFlashSmallEntrySize - 1;
const int32 kFlashSummarySize = (1 + kFlashMaxEntryCount) * sizeof(int32);
const int32 kFlashSegmentFreeSpace = kFlashSegmentSize - kFlashSummarySize;
+// An entry consists of a fixed number of streams.
+const int32 kFlashCacheEntryNumStreams = 4;
+const int32 kFlashCacheEntryHeaderSize =
+ kFlashCacheEntryNumStreams * sizeof(int32);
+
} // namespace disk_cache
#endif // NET_DISK_CACHE_FLASH_FORMAT_H_

Powered by Google App Engine
This is Rietveld 408576698