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

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

Issue 1160203003: net: Remove the remaining use of GG_(U)INTn_C macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stdint.h Created 5 years, 6 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
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_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 9
9 #include "base/basictypes.h" 10 #include "base/basictypes.h"
10 #include "base/port.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 12
13 namespace base { 13 namespace base {
14 class Time; 14 class Time;
15 } 15 }
16 16
17 namespace disk_cache { 17 namespace disk_cache {
18 18
19 const uint64 kSimpleInitialMagicNumber = GG_UINT64_C(0xfcfb6d1ba7725c30); 19 const uint64 kSimpleInitialMagicNumber = UINT64_C(0xfcfb6d1ba7725c30);
20 const uint64 kSimpleFinalMagicNumber = GG_UINT64_C(0xf4fa6f45970d41d8); 20 const uint64 kSimpleFinalMagicNumber = UINT64_C(0xf4fa6f45970d41d8);
21 const uint64 kSimpleSparseRangeMagicNumber = GG_UINT64_C(0xeb97bf016553676b); 21 const uint64 kSimpleSparseRangeMagicNumber = UINT64_C(0xeb97bf016553676b);
22 22
23 // A file containing stream 0 and stream 1 in the Simple cache consists of: 23 // A file containing stream 0 and stream 1 in the Simple cache consists of:
24 // - a SimpleFileHeader. 24 // - a SimpleFileHeader.
25 // - the key. 25 // - the key.
26 // - the data from stream 1. 26 // - the data from stream 1.
27 // - a SimpleFileEOF record for stream 1. 27 // - a SimpleFileEOF record for stream 1.
28 // - the data from stream 0. 28 // - the data from stream 0.
29 // - a SimpleFileEOF record for stream 0. 29 // - a SimpleFileEOF record for stream 0.
30 30
31 // A file containing stream 2 in the Simple cache consists of: 31 // A file containing stream 2 in the Simple cache consists of:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 uint64 sparse_range_magic_number; 65 uint64 sparse_range_magic_number;
66 int64 offset; 66 int64 offset;
67 int64 length; 67 int64 length;
68 uint32 data_crc32; 68 uint32 data_crc32;
69 }; 69 };
70 70
71 } // namespace disk_cache 71 } // namespace disk_cache
72 72
73 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_ 73 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_H_
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/sparse_control.cc ('k') | net/disk_cache/simple/simple_entry_format_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698