Lines Matching defs:disk_cache
5 #include "net/disk_cache/block_files.h"
13 #include "net/disk_cache/cache_util.h"
14 #include "net/disk_cache/file_lock.h"
15 #include "net/disk_cache/trace.h"
34 void FixAllocationCounters(disk_cache::BlockFileHeader* header);
39 bool CreateMapBlock(int target, int size, disk_cache::BlockFileHeader* header,
41 if (target <= 0 || target > disk_cache::kMaxNumBlocks ||
42 size <= 0 || size > disk_cache::kMaxNumBlocks) {
60 disk_cache::FileLock lock(header);
88 void DeleteMapBlock(int index, int size, disk_cache::BlockFileHeader* header) {
89 if (size < 0 || size > disk_cache::kMaxNumBlocks) {
108 disk_cache::FileLock lock(header);
128 bool UsedMapBlock(int index, int size, disk_cache::BlockFileHeader* header) {
129 if (size < 0 || size > disk_cache::kMaxNumBlocks) {
147 void FixAllocationCounters(disk_cache::BlockFileHeader* header) {
148 for (int i = 0; i < disk_cache::kMaxNumBlocks; i++) {
166 bool NeedToGrowBlockFile(const disk_cache::BlockFileHeader* header,
170 for (int i = 0; i < disk_cache::kMaxNumBlocks; i++) {
176 if (header->next_file && (empty_blocks < disk_cache::kMaxBlocks / 10)) {
187 namespace disk_cache {
627 } // namespace disk_cache