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

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

Issue 12226095: Make synchronous methods on disk_cache::SimpleEntryImpl() reentrant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove bad blank line Created 7 years, 10 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
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 namespace disk_cache { 8 namespace disk_cache {
9 9
10 const uint64 kSimpleInitialMagicNumber = 0xfcfb6d1ba7725c30; 10 const uint64 kSimpleInitialMagicNumber = 0xfcfb6d1ba7725c30;
11 11
12 // A file in the Simple cache consists of a SimpleFileHeader followed 12 // A file in the Simple cache consists of a SimpleFileHeader followed
13 // by data. 13 // by data.
14 14
15 const uint32 kSimpleVersion = 1; 15 const uint32 kSimpleVersion = 1;
16 16
17 static const int kSimpleEntryFileCount = 3;
18
17 struct SimpleFileHeader { 19 struct SimpleFileHeader {
18 uint64 initial_magic_number; 20 uint64 initial_magic_number;
19 uint32 version; 21 uint32 version;
20 uint32 key_length; 22 uint32 key_length;
21 uint32 key_hash; 23 uint32 key_hash;
22 }; 24 };
23 25
24 } // namespace disk_cache 26 } // namespace disk_cache
25 27
26 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_ 28 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_DISK_FORMAT_H_
OLDNEW
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_entry_impl.h » ('j') | net/disk_cache/simple/simple_entry_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698