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

Side by Side Diff: net/disk_cache/v3/disk_format_v3.cc

Issue 14991008: Disk cache: Add base files for implementation of file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/v3/disk_format_v3.h ('k') | net/disk_cache/v3/entry_impl_v3.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/disk_cache/disk_format.h" 5 #include "net/disk_cache/disk_format.h"
6 6
7 namespace disk_cache { 7 namespace disk_cache {
8 8
9 IndexHeader::IndexHeader() { 9 IndexHeader::IndexHeader() {
10 memset(this, 0, sizeof(*this)); 10 memset(this, 0, sizeof(*this));
11 magic = kIndexMagic; 11 magic = kIndexMagic;
12 version = kCurrentVersion; 12 version = kCurrentVersion;
13 } 13 }
14 14
15 BlockFileHeader::BlockFileHeader() {
16 memset(this, 0, sizeof(BlockFileHeader));
17 magic = kBlockMagic;
18 version = kCurrentVersion;
19 }
20
21 } // namespace disk_cache 15 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/v3/disk_format_v3.h ('k') | net/disk_cache/v3/entry_impl_v3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698