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

Side by Side Diff: net/disk_cache/simple/simple_entry_format.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
(Empty)
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.
4
5 #include "net/disk_cache/simple/simple_entry_format.h"
6
7 #include <cstring>
8
9 namespace disk_cache {
10
11 SimpleFileHeader::SimpleFileHeader() {
12 // Make hashing repeatable: leave no padding bytes untouched.
13 std::memset(this, 0, sizeof(*this));
14 }
15
16 SimpleFileEOF::SimpleFileEOF() {
17 // Make hashing repeatable: leave no padding bytes untouched.
18 std::memset(this, 0, sizeof(*this));
19 }
20
21 SimpleFileSparseRangeHeader::SimpleFileSparseRangeHeader() {
22 // Make hashing repeatable: leave no padding bytes untouched.
23 std::memset(this, 0, sizeof(*this));
24 }
25
26 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_entry_format.h ('k') | net/disk_cache/simple/simple_entry_format_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698