OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This is an internal class that handles the address of a cache record. | 5 // This is an internal class that handles the address of a cache record. |
6 // See net/disk_cache/disk_cache.h for the public interface of the cache. | 6 // See net/disk_cache/disk_cache.h for the public interface of the cache. |
7 | 7 |
8 #ifndef NET_DISK_CACHE_ADDR_H_ | 8 #ifndef NET_DISK_CACHE_BLOCKFILE_ADDR_H_ |
9 #define NET_DISK_CACHE_ADDR_H_ | 9 #define NET_DISK_CACHE_BLOCKFILE_ADDR_H_ |
10 | 10 |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/disk_cache/disk_format_base.h" | 12 #include "net/disk_cache/blockfile/disk_format_base.h" |
13 | 13 |
14 namespace disk_cache { | 14 namespace disk_cache { |
15 | 15 |
16 enum FileType { | 16 enum FileType { |
17 EXTERNAL = 0, | 17 EXTERNAL = 0, |
18 RANKINGS = 1, | 18 RANKINGS = 1, |
19 BLOCK_256 = 2, | 19 BLOCK_256 = 2, |
20 BLOCK_1K = 3, | 20 BLOCK_1K = 3, |
21 BLOCK_4K = 4, | 21 BLOCK_4K = 4, |
22 BLOCK_FILES = 5, | 22 BLOCK_FILES = 5, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 static const uint32 kFileSelectorMask = 0x00ff0000; | 178 static const uint32 kFileSelectorMask = 0x00ff0000; |
179 static const uint32 kFileSelectorOffset = 16; | 179 static const uint32 kFileSelectorOffset = 16; |
180 static const uint32 kStartBlockMask = 0x0000FFFF; | 180 static const uint32 kStartBlockMask = 0x0000FFFF; |
181 static const uint32 kFileNameMask = 0x0FFFFFFF; | 181 static const uint32 kFileNameMask = 0x0FFFFFFF; |
182 | 182 |
183 CacheAddr value_; | 183 CacheAddr value_; |
184 }; | 184 }; |
185 | 185 |
186 } // namespace disk_cache | 186 } // namespace disk_cache |
187 | 187 |
188 #endif // NET_DISK_CACHE_ADDR_H_ | 188 #endif // NET_DISK_CACHE_BLOCKFILE_ADDR_H_ |
OLD | NEW |