Lines Matching defs:disk_cache
5 #include "net/disk_cache/backend_impl.h"
22 #include "net/disk_cache/cache_util.h"
23 #include "net/disk_cache/entry_impl.h"
24 #include "net/disk_cache/errors.h"
25 #include "net/disk_cache/experiments.h"
26 #include "net/disk_cache/file.h"
27 #include "net/disk_cache/hash.h"
28 #include "net/disk_cache/mem_backend_impl.h"
32 #include "net/disk_cache/histogram_macros.h"
69 size_t table_size = sizeof(disk_cache::CacheAddr) * table_len;
70 return sizeof(disk_cache::IndexHeader) + table_size;
102 disk_cache::DeleteCache(to_delete, true);
141 if (!disk_cache::MoveCache(full_path, to_delete)) {
152 bool InitExperiment(disk_cache::IndexHeader* header) {
153 if (header->experiment == disk_cache::EXPERIMENT_OLD_FILE1 ||
154 header->experiment == disk_cache::EXPERIMENT_OLD_FILE2) {
160 if (header->experiment >= disk_cache::EXPERIMENT_DELETED_LIST_OUT)
164 header->experiment = disk_cache::EXPERIMENT_DELETED_LIST_OUT;
192 disk_cache::Backend** backend,
218 disk_cache::Backend** backend_;
220 disk_cache::BackendImpl* cache_;
228 cache_ = new disk_cache::BackendImpl(path_, thread_, net_log_);
273 explicit FinalCleanup(disk_cache::BackendImpl* backend) : backend_(backend) {}
278 disk_cache::BackendImpl* backend_;
290 namespace disk_cache {
347 cache_type_(net::DISK_CACHE),
373 cache_type_(net::DISK_CACHE),
456 cache_type_ != net::DISK_CACHE) {
461 if (!(user_flags_ & disk_cache::kNoRandom)) {
463 new_eviction_ = (cache_type_ == net::DISK_CACHE);
471 if (!(user_flags_ & disk_cache::kNoRandom) &&
472 cache_type_ == net::DISK_CACHE &&
501 if (cache_type() == net::DISK_CACHE)
693 SIMPLE_STATS_COUNTER("disk_cache.hit");
789 SIMPLE_STATS_COUNTER("disk_cache.miss");
856 scoped_refptr<disk_cache::File> file(new disk_cache::File(
1354 bool BackendImpl::CreateBackingStore(disk_cache::File* file) {
1381 scoped_refptr<disk_cache::File> file(new disk_cache::File(
1981 if (cache_type_ == net::DISK_CACHE)
2126 } // namespace disk_cache