Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / net / disk_cache / simple / simple_entry_format.cc
blob41cab2d36f22326092ed32566bd8f6e31e7c71c2
1 // Copyright (c) 2013 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.
5 #include "net/disk_cache/simple/simple_entry_format.h"
7 #include <cstring>
9 namespace disk_cache {
11 SimpleFileHeader::SimpleFileHeader() {
12 // Make hashing repeatable: leave no padding bytes untouched.
13 std::memset(this, 0, sizeof(*this));
16 SimpleFileEOF::SimpleFileEOF() {
17 // Make hashing repeatable: leave no padding bytes untouched.
18 std::memset(this, 0, sizeof(*this));
21 SimpleFileSparseRangeHeader::SimpleFileSparseRangeHeader() {
22 // Make hashing repeatable: leave no padding bytes untouched.
23 std::memset(this, 0, sizeof(*this));
26 } // namespace disk_cache