diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 20:21:31 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 20:21:31 +0000 |
commit | b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17 (patch) | |
tree | 0d35c3f624aec7c6de8824fab2b9521bfff1dbff /net/disk_cache/disk_format.h | |
parent | d13509f32546e26332733ac6153d359fbd566eaa (diff) | |
download | chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.zip chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.tar.gz chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.tar.bz2 |
FBTF: Monster ctor patch after changing heuristics in clang plugin.
(Only 916k this time off Debug Linux .a files)
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3814013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_format.h')
-rw-r--r-- | net/disk_cache/disk_format.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/net/disk_cache/disk_format.h b/net/disk_cache/disk_format.h index ac4c6348..ffe36ae 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); |