1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/disk_cache/disk_format.h" 6 7 namespace disk_cache { 8 IndexHeader()9IndexHeader::IndexHeader() { 10 memset(this, 0, sizeof(*this)); 11 magic = kIndexMagic; 12 version = kCurrentVersion; 13 } 14 BlockFileHeader()15BlockFileHeader::BlockFileHeader() { 16 memset(this, 0, sizeof(BlockFileHeader)); 17 magic = kBlockMagic; 18 version = kCurrentVersion; 19 } 20 21 } // namespace disk_cache 22