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

Side by Side Diff: net/disk_cache/simple/simple_entry_format.h

Issue 14263005: Refactor our SimpleIndex file format and serialization to use Pickle instead of the previously bugg… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: to commit again, since the last dcommit failed Created 7 years, 8 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_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_
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_disk_format.cc ('k') | net/disk_cache/simple/simple_entry_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698