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 // See net/disk_cache/disk_cache.h for the public interface. | 5 // See net/disk_cache/disk_cache.h for the public interface. |
6 | 6 |
7 #ifndef NET_DISK_CACHE_V3_BLOCK_BITMAPS_H_ | 7 #ifndef NET_DISK_CACHE_BLOCKFILE_BLOCK_BITMAPS_V3_H_ |
8 #define NET_DISK_CACHE_V3_BLOCK_BITMAPS_H_ | 8 #define NET_DISK_CACHE_BLOCKFILE_BLOCK_BITMAPS_V3_H_ |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/disk_cache/addr.h" | 12 #include "net/disk_cache/blockfile/addr.h" |
13 #include "net/disk_cache/block_files.h" | 13 #include "net/disk_cache/blockfile/block_files.h" |
14 | 14 |
15 namespace disk_cache { | 15 namespace disk_cache { |
16 | 16 |
17 class BackendImplV3; | 17 class BackendImplV3; |
18 | 18 |
19 // This class is the interface in the v3 disk cache to the set of files holding | 19 // This class is the interface in the v3 disk cache to the set of files holding |
20 // cached data that is small enough to not be efficiently stored in a dedicated | 20 // cached data that is small enough to not be efficiently stored in a dedicated |
21 // file (i.e. < kMaxBlockSize). It is primarily used to allocate and free | 21 // file (i.e. < kMaxBlockSize). It is primarily used to allocate and free |
22 // regions in those files used to store data. | 22 // regions in those files used to store data. |
23 class NET_EXPORT_PRIVATE BlockBitmaps { | 23 class NET_EXPORT_PRIVATE BlockBitmaps { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Retrieves stats for the given file index. | 55 // Retrieves stats for the given file index. |
56 void GetFileStats(int index, int* used_count, int* load); | 56 void GetFileStats(int index, int* used_count, int* load); |
57 | 57 |
58 BlockFilesBitmaps bitmaps_; | 58 BlockFilesBitmaps bitmaps_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(BlockBitmaps); | 60 DISALLOW_COPY_AND_ASSIGN(BlockBitmaps); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace disk_cache | 63 } // namespace disk_cache |
64 | 64 |
65 #endif // NET_DISK_CACHE_V3_BLOCK_BITMAPS_H_ | 65 #endif // NET_DISK_CACHE_BLOCKFILE_BLOCK_BITMAPS_V3_H_ |
OLD | NEW |