Home | History | Annotate | Download | only in crash_cache

Lines Matching refs:DISK_CACHE

25 #include "net/disk_cache/backend_impl.h"
26 #include "net/disk_cache/disk_cache.h"
27 #include "net/disk_cache/disk_cache_test_util.h"
28 #include "net/disk_cache/rankings.h"
40 using disk_cache::RankCrashes;
70 for (int i = disk_cache::NO_CRASH + 1; i < disk_cache::MAX_CRASH; i++) {
112 COMPILE_ASSERT(arraysize(folders) == disk_cache::MAX_CRASH, sync_folders);
113 DCHECK(action > disk_cache::NO_CRASH && action < disk_cache::MAX_CRASH);
124 void FlushQueue(disk_cache::Backend* cache) {
127 reinterpret_cast<disk_cache::BackendImpl*>(cache)->FlushQueueForTest(&cb);
135 disk_cache::Backend* cache;
136 int rv = disk_cache::CreateCacheBackend(net::DISK_CACHE, path, 0, false,
144 if (action <= disk_cache::INSERT_EMPTY_3) {
149 disk_cache::Entry* entry;
157 DCHECK(action <= disk_cache::INSERT_ONE_3);
171 DCHECK(action >= disk_cache::REMOVE_ONE_1);
172 DCHECK(action <= disk_cache::REMOVE_TAIL_3);
175 disk_cache::Backend* cache;
177 int rv = disk_cache::CreateCacheBackend(net::MEDIA_CACHE, path, 0, false,
183 disk_cache::Entry* entry;
191 if (action >= disk_cache::REMOVE_TAIL_1) {
214 DCHECK(action >= disk_cache::REMOVE_HEAD_1);
215 DCHECK(action <= disk_cache::REMOVE_HEAD_4);
218 disk_cache::Backend* cache;
220 int rv = disk_cache::CreateCacheBackend(net::MEDIA_CACHE, path, 0, false,
226 disk_cache::Entry* entry;
255 DCHECK(action >= disk_cache::INSERT_LOAD_1);
258 disk_cache::BackendImpl* cache = new disk_cache::BackendImpl(
271 disk_cache::Entry* entry;
279 if (50 == i && action >= disk_cache::REMOVE_LOAD_1) {
288 if (action <= disk_cache::INSERT_LOAD_2) {
324 if (action <= disk_cache::INSERT_ONE_3)
327 if (action <= disk_cache::INSERT_LOAD_2)
330 if (action <= disk_cache::REMOVE_ONE_4)
333 if (action <= disk_cache::REMOVE_HEAD_4)
336 if (action <= disk_cache::REMOVE_TAIL_3)
339 if (action <= disk_cache::REMOVE_LOAD_3)
356 if (action <= disk_cache::NO_CRASH || action >= disk_cache::MAX_CRASH) {