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

Unified Diff: net/disk_cache/disk_format.h

Issue 27345: New disk cache eviction algorithm. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months 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 | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/entry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_format.h
===================================================================
--- net/disk_cache/disk_format.h (revision 11078)
+++ net/disk_cache/disk_format.h (working copy)
@@ -52,8 +52,8 @@
// being currently used, it means that the entry was not properly closed on a
// previous run, so it is discarded.
-#ifndef NET_DISK_CACHE_DISK_FORMAT_H__
-#define NET_DISK_CACHE_DISK_FORMAT_H__
+#ifndef NET_DISK_CACHE_DISK_FORMAT_H_
+#define NET_DISK_CACHE_DISK_FORMAT_H_
#include "base/basictypes.h"
@@ -66,12 +66,14 @@
const uint32 kCurrentVersion = 0x20000; // Version 2.0.
struct LruData {
+ int32 pad1[3];
+ int32 sizes[5];
CacheAddr heads[5];
CacheAddr tails[5];
CacheAddr transaction; // In-flight operation target.
int32 operation; // Actual in-flight operation.
int32 operation_list; // In-flight operation list.
- int32 pad[7];
+ int32 pad2[7];
};
// Header for the master index file.
@@ -86,7 +88,7 @@
int32 table_len; // Actual size of the table (0 == kIndexTablesize).
int32 crash; // Signals a previous crash.
int32 experiment; // Id of an ongoing test.
- int32 pad[62];
+ int32 pad[54];
LruData lru; // Eviction control data.
IndexHeader() {
memset(this, 0, sizeof(*this));
@@ -188,5 +190,5 @@
} // namespace disk_cache
-#endif // NET_DISK_CACHE_DISK_FORMAT_H__
+#endif // NET_DISK_CACHE_DISK_FORMAT_H_
« no previous file with comments | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698