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

Unified Diff: net/disk_cache/disk_format.h

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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 | « media/media.gyp ('k') | net/disk_cache/disk_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_format.h
diff --git a/net/disk_cache/disk_format.h b/net/disk_cache/disk_format.h
index ac4c6348bb63ad6f9135e617a74a1cb3ae818fe5..ffe36aed0a32e1384ef6111544deb3185cb0c9f3 100644
--- a/net/disk_cache/disk_format.h
+++ b/net/disk_cache/disk_format.h
@@ -80,6 +80,8 @@ struct LruData {
// Header for the master index file.
struct IndexHeader {
+ IndexHeader();
+
uint32 magic;
uint32 version;
int32 num_entries; // Number of entries currently stored.
@@ -93,11 +95,6 @@ struct IndexHeader {
uint64 create_time; // Creation time for this set of files.
int32 pad[52];
LruData lru; // Eviction control data.
- IndexHeader() {
- memset(this, 0, sizeof(*this));
- magic = kIndexMagic;
- version = kCurrentVersion;
- };
};
// The structure of the whole index file.
@@ -177,6 +174,8 @@ typedef uint32 AllocBitmap[kMaxBlocks / 32];
// from the beginning every time).
// This Structure is the header of a block-file:
struct BlockFileHeader {
+ BlockFileHeader();
+
uint32 magic;
uint32 version;
int16 this_file; // Index of this file.
@@ -189,11 +188,6 @@ struct BlockFileHeader {
volatile int32 updating; // Keep track of updates to the header.
int32 user[5];
AllocBitmap allocation_map;
- BlockFileHeader() {
- memset(this, 0, sizeof(BlockFileHeader));
- magic = kBlockMagic;
- version = kCurrentVersion;
- };
};
COMPILE_ASSERT(sizeof(BlockFileHeader) == kBlockHeaderSize, bad_header);
« no previous file with comments | « media/media.gyp ('k') | net/disk_cache/disk_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698