Index: net/disk_cache/very_simple/very_simple_disk_format.h |
diff --git a/net/disk_cache/very_simple/very_simple_disk_format.h b/net/disk_cache/very_simple/very_simple_disk_format.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fce0ab8c39fb37f8a1dc21447669b4a203e429a8 |
--- /dev/null |
+++ b/net/disk_cache/very_simple/very_simple_disk_format.h |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NET_DISK_CACHE_VERY_SIMPLE_VERY_SIMPLE_DISK_FORMAT_H_ |
+#define NET_DISK_CACHE_VERY_SIMPLE_VERY_SIMPLE_DISK_FORMAT_H_ |
+ |
+namespace disk_cache { |
+ |
+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
|
+ |
+// A file in the VerySimple cache consists of a VerySimpleFileHeader followed |
+// by data. |
+ |
+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.
|
+ |
+struct VerySimpleFileHeader { |
+ uint64 initial_magic_number; |
+ uint32 version; |
+ uint32 key_length; |
+ uint32 key_murmur3; |
+}; |
+ |
+} // namespace disk_cache |
+ |
+#endif // NET_DISK_CACHE_VERY_SIMPLE_VERY_SIMPLE_DISK_FORMAT_H_ |