| 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_ENTRY_FORMAT_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ |
| 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 | 11 |
| 12 namespace base { | |
| 13 class Time; | |
| 14 } | |
| 15 | |
| 16 namespace disk_cache { | 12 namespace disk_cache { |
| 17 | 13 |
| 18 const uint64_t kSimpleInitialMagicNumber = UINT64_C(0xfcfb6d1ba7725c30); | 14 const uint64_t kSimpleInitialMagicNumber = UINT64_C(0xfcfb6d1ba7725c30); |
| 19 const uint64_t kSimpleFinalMagicNumber = UINT64_C(0xf4fa6f45970d41d8); | 15 const uint64_t kSimpleFinalMagicNumber = UINT64_C(0xf4fa6f45970d41d8); |
| 20 const uint64_t kSimpleSparseRangeMagicNumber = UINT64_C(0xeb97bf016553676b); | 16 const uint64_t kSimpleSparseRangeMagicNumber = UINT64_C(0xeb97bf016553676b); |
| 21 | 17 |
| 22 // A file containing stream 0 and stream 1 in the Simple cache consists of: | 18 // A file containing stream 0 and stream 1 in the Simple cache consists of: |
| 23 // - a SimpleFileHeader. | 19 // - a SimpleFileHeader. |
| 24 // - the key. | 20 // - the key. |
| 25 // - the data from stream 1. | 21 // - the data from stream 1. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 68 |
| 73 uint64_t sparse_range_magic_number; | 69 uint64_t sparse_range_magic_number; |
| 74 int64_t offset; | 70 int64_t offset; |
| 75 int64_t length; | 71 int64_t length; |
| 76 uint32_t data_crc32; | 72 uint32_t data_crc32; |
| 77 }; | 73 }; |
| 78 | 74 |
| 79 } // namespace disk_cache | 75 } // namespace disk_cache |
| 80 | 76 |
| 81 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ | 77 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ |
| OLD | NEW |