OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ |
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ |
7 | 7 |
8 #include "base/port.h" | 8 #include "base/port.h" |
9 | 9 |
10 namespace disk_cache { | 10 namespace disk_cache { |
11 | 11 |
12 const uint64 kSimpleInitialMagicNumber = GG_UINT64_C(0xfcfb6d1ba7725c30); | 12 const uint64 kSimpleInitialMagicNumber = GG_UINT64_C(0xfcfb6d1ba7725c30); |
13 | 13 |
14 // A file in the Simple cache consists of a SimpleFileHeader followed | 14 // A file in the Simple cache consists of a SimpleFileHeader followed |
15 // by data. | 15 // by data. |
16 | 16 |
17 const uint32 kSimpleVersion = 1; | 17 const uint32 kSimpleVersion = 1; |
18 | 18 |
| 19 static const int kSimpleEntryFileCount = 3; |
| 20 |
19 struct SimpleFileHeader { | 21 struct SimpleFileHeader { |
20 uint64 initial_magic_number; | 22 uint64 initial_magic_number; |
21 uint32 version; | 23 uint32 version; |
22 uint32 key_length; | 24 uint32 key_length; |
23 uint32 key_hash; | 25 uint32 key_hash; |
24 }; | 26 }; |
25 | 27 |
26 } // namespace disk_cache | 28 } // namespace disk_cache |
27 | 29 |
28 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ | 30 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ |
OLD | NEW |