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

Unified Diff: net/disk_cache/v3/disk_format_v3.cc

Issue 15203004: Disk cache: Reference CL for the implementation of file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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/v3/disk_format_v3.h ('k') | net/disk_cache/v3/entry_impl_v3.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/v3/disk_format_v3.cc
===================================================================
--- net/disk_cache/v3/disk_format_v3.cc (revision 0)
+++ net/disk_cache/v3/disk_format_v3.cc (revision 0)
@@ -0,0 +1,26 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/disk_cache/v3/disk_format_v3.h"
+
+#include "net/disk_cache/addr.h"
+
+namespace disk_cache {
+
+IndexHeaderV3::IndexHeaderV3() {
+ memset(this, 0, sizeof(*this));
+ magic = kIndexMagic;
+ version = kCurrentVersion;
+ max_block_file = kFirstAdditionalBlockFileV3;
+}
+
+EntryRecord::EntryRecord() {
+ memset(this, 0, sizeof(*this));
+}
+
+ShortEntryRecord::ShortEntryRecord() {
+ memset(this, 0, sizeof(*this));
+}
+
+} // namespace disk_cache
Property changes on: net\disk_cache\v3\disk_format_v3.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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