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

Side by Side Diff: net/disk_cache/very_simple/very_simple_disk_format.h

Issue 12192005: Add new simple disk cache backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to trunk (::FilePath --> base::FilePath) Created 7 years, 10 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
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 #ifndef NET_DISK_CACHE_VERY_SIMPLE_VERY_SIMPLE_DISK_FORMAT_H_
6 #define NET_DISK_CACHE_VERY_SIMPLE_VERY_SIMPLE_DISK_FORMAT_H_
7
8 namespace disk_cache {
9
10 const uint64 kVerySimpleInitialMagicNumber = 0x10adab1ebeef;
rvargas (doing something else) 2013/02/06 03:28:40 nit: something vegetarian? Seriously, avoid common
gavinp 2013/02/08 23:17:51 Not so common: http://www.bing.com/search?q=0x10ad
11
12 // A file in the VerySimple cache consists of a VerySimpleFileHeader followed
13 // by data.
14
15 const uint32 kVerySimpleVersion = 0;
rvargas (doing something else) 2013/02/06 03:28:40 nit: 0?
gavinp 2013/02/08 23:17:51 Now 1.
16
17 struct VerySimpleFileHeader {
18 uint64 initial_magic_number;
19 uint32 version;
20 uint32 key_length;
21 uint32 key_murmur3;
22 };
23
24 } // namespace disk_cache
25
26 #endif // NET_DISK_CACHE_VERY_SIMPLE_VERY_SIMPLE_DISK_FORMAT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698