OLD | NEW |
(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_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ |
| 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ |
| 7 |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/port.h" |
| 11 #include "net/base/net_export.h" |
| 12 |
| 13 namespace base { |
| 14 class Time; |
| 15 } |
| 16 |
| 17 namespace disk_cache { |
| 18 |
| 19 const uint64 kSimpleInitialMagicNumber = GG_UINT64_C(0xfcfb6d1ba7725c30); |
| 20 |
| 21 // A file in the Simple cache consists of a SimpleFileHeader followed |
| 22 // by data. |
| 23 |
| 24 const uint32 kSimpleVersion = 1; |
| 25 |
| 26 static const int kSimpleEntryFileCount = 3; |
| 27 |
| 28 struct NET_EXPORT_PRIVATE SimpleFileHeader { |
| 29 SimpleFileHeader(); |
| 30 uint64 initial_magic_number; |
| 31 uint32 version; |
| 32 uint32 key_length; |
| 33 uint32 key_hash; |
| 34 }; |
| 35 |
| 36 } // namespace disk_cache |
| 37 |
| 38 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ |
OLD | NEW |