Home
last modified time | relevance | path

Searched refs:disk_cache (Results 1 – 25 of 105) sorted by relevance

12345

/external/chromium/net/tools/crash_cache/
Dcrash_cache.cc40 using disk_cache::RankCrashes;
70 for (int i = disk_cache::NO_CRASH + 1; i < disk_cache::MAX_CRASH; i++) { in MasterCode()
112 COMPILE_ASSERT(arraysize(folders) == disk_cache::MAX_CRASH, sync_folders); in CreateTargetFolder()
113 DCHECK(action > disk_cache::NO_CRASH && action < disk_cache::MAX_CRASH); in CreateTargetFolder()
124 void FlushQueue(disk_cache::Backend* cache) { in FlushQueue()
127 reinterpret_cast<disk_cache::BackendImpl*>(cache)->FlushQueueForTest(&cb); in FlushQueue()
135 disk_cache::Backend* cache; in SimpleInsert()
136 int rv = disk_cache::CreateCacheBackend(net::DISK_CACHE, path, 0, false, in SimpleInsert()
144 if (action <= disk_cache::INSERT_EMPTY_3) { in SimpleInsert()
149 disk_cache::Entry* entry; in SimpleInsert()
[all …]
/external/chromium/net/disk_cache/
Dstorage_block_unittest.cc14 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); in TEST_F()
18 disk_cache::CacheEntryBlock entry1(file, disk_cache::Addr(0xa0010001)); in TEST_F()
19 memset(entry1.Data(), 0, sizeof(disk_cache::EntryStore)); in TEST_F()
34 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); in TEST_F()
38 disk_cache::CacheEntryBlock entry1(file, disk_cache::Addr(0xa0010001)); in TEST_F()
41 disk_cache::CacheEntryBlock entry2(file, disk_cache::Addr(0xa0010002)); in TEST_F()
54 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); in TEST_F()
58 disk_cache::CacheEntryBlock* entry1 = in TEST_F()
59 new disk_cache::CacheEntryBlock(file, disk_cache::Addr(0xa0010003)); in TEST_F()
66 disk_cache::CacheEntryBlock entry2(file, disk_cache::Addr(0xa0010003)); in TEST_F()
Dfile_posix.cc18 class FileBackgroundIO : public disk_cache::BackgroundIO {
25 FileBackgroundIO(disk_cache::File* file, const void* buf, size_t buf_len, in FileBackgroundIO()
26 size_t offset, disk_cache::FileIOCallback* callback, in FileBackgroundIO()
27 disk_cache::InFlightIO* controller) in FileBackgroundIO()
28 : disk_cache::BackgroundIO(controller), callback_(callback), file_(file), in FileBackgroundIO()
32 disk_cache::FileIOCallback* callback() { in callback()
36 disk_cache::File* file() { in file()
51 disk_cache::FileIOCallback* callback_;
53 disk_cache::File* file_;
63 class FileInFlightIO : public disk_cache::InFlightIO {
[all …]
Ddisk_cache_test_base.h23 namespace disk_cache {
91 int OpenEntry(const std::string& key, disk_cache::Entry** entry);
92 int CreateEntry(const std::string& key, disk_cache::Entry** entry);
98 int OpenNextEntry(void** iter, disk_cache::Entry** next_entry);
101 int ReadData(disk_cache::Entry* entry, int index, int offset,
103 int WriteData(disk_cache::Entry* entry, int index, int offset,
105 int ReadSparseData(disk_cache::Entry* entry, int64 offset, net::IOBuffer* buf,
107 int WriteSparseData(disk_cache::Entry* entry, int64 offset,
123 disk_cache::Backend* cache_;
124 disk_cache::BackendImpl* cache_impl_;
[all …]
Dbackend_unittest.cc67 disk_cache::Entry *entry1 = NULL, *entry2 = NULL; in BackendBasics()
87 disk_cache::Entry* entry3 = NULL; in BackendBasics()
134 disk_cache::Entry *entry1, *entry2; in BackendKeying()
201 disk_cache::Backend* cache = NULL; in TEST_F()
202 int rv = disk_cache::BackendImpl::CreateBackend( in TEST_F()
203 path, false, 0, net::DISK_CACHE, disk_cache::kNoRandom, in TEST_F()
209 cache = disk_cache::MemBackendImpl::CreateBackend(0, NULL); in TEST_F()
215 rv = disk_cache::CreateCacheBackend(net::DISK_CACHE, path, 0, false, in TEST_F()
223 rv = disk_cache::CreateCacheBackend(net::MEMORY_CACHE, FilePath(), 0, false, in TEST_F()
244 disk_cache::Entry* entry; in TEST_F()
[all …]
Ddisk_cache_test_base.cc81 disk_cache::Entry** entry) { in OpenEntry()
88 disk_cache::Entry** entry) { in CreateEntry()
120 disk_cache::Entry** next_entry) { in OpenNextEntry()
147 int DiskCacheTestWithCache::ReadData(disk_cache::Entry* entry, int index, in ReadData()
155 int DiskCacheTestWithCache::WriteData(disk_cache::Entry* entry, int index, in WriteData()
163 int DiskCacheTestWithCache::ReadSparseData(disk_cache::Entry* entry, in ReadSparseData()
171 int DiskCacheTestWithCache::WriteSparseData(disk_cache::Entry* entry, in WriteSparseData()
182 TrimTask(disk_cache::BackendImpl* backend, bool deleted, bool empty) in TrimTask()
195 disk_cache::BackendImpl* backend_;
224 cache_ = disk_cache::MemBackendImpl::CreateBackend(size_, NULL); in InitMemoryCache()
[all …]
Dbitmap_unittest.cc10 disk_cache::Bitmap map32(32, false); in TEST()
13 disk_cache::Bitmap map64(64, false); in TEST()
19 disk_cache::Bitmap map; in TEST()
26 disk_cache::Bitmap bitmap(80, true); in TEST()
59 disk_cache::Bitmap map(kSize, true); in TEST()
72 disk_cache::Bitmap map(kSize1, true); in TEST()
96 disk_cache::Bitmap bitmap(kMapSize * 8, false); in TEST()
108 disk_cache::Bitmap bitmap2(reinterpret_cast<uint32*>(local_map), in TEST()
125 disk_cache::Bitmap map(kMapSize * 8, true); in TEST()
138 disk_cache::Bitmap map(100, true); in TEST()
[all …]
Ddisk_cache_perftest.cc44 int TimeWrite(int num_entries, disk_cache::Backend* cache, in TimeWrite()
68 disk_cache::Entry* cache_entry; in TimeWrite()
95 int TimeRead(int num_entries, disk_cache::Backend* cache, in TimeRead()
116 disk_cache::Entry* cache_entry; in TimeRead()
155 disk_cache::Hash(key); in TEST_F()
169 disk_cache::Backend* cache; in TEST_F()
170 int rv = disk_cache::CreateCacheBackend( in TEST_F()
199 rv = disk_cache::CreateCacheBackend(net::DISK_CACHE, test_cache.path(), 0, in TEST_F()
224 disk_cache::BlockFiles files(test_cache.path()); in TEST_F()
231 disk_cache::Addr* address = new disk_cache::Addr[kNumEntries]; in TEST_F()
[all …]
Drankings.cc17 disk_cache::RankCrashes g_rankings_crash = disk_cache::NO_CRASH;
37 Transaction(volatile disk_cache::LruData* data, disk_cache::Addr addr,
41 volatile disk_cache::LruData* data_;
45 Transaction::Transaction(volatile disk_cache::LruData* data, in Transaction()
46 disk_cache::Addr addr, Operation op, int list) in Transaction()
85 if (disk_cache::NO_CRASH == g_rankings_crash) in GenerateCrash()
90 case disk_cache::INSERT_ONE_1: in GenerateCrash()
91 case disk_cache::INSERT_LOAD_1: in GenerateCrash()
98 if (disk_cache::INSERT_EMPTY_1 == g_rankings_crash) in GenerateCrash()
103 case disk_cache::INSERT_EMPTY_2: in GenerateCrash()
[all …]
Dsparse_control.cc53 public disk_cache::FileIOCallback {
55 ChildrenDeleter(disk_cache::BackendImpl* backend, const std::string& name) in ChildrenDeleter()
63 void ReadData(disk_cache::Addr address, int len);
71 base::WeakPtr<disk_cache::BackendImpl> backend_;
73 disk_cache::Bitmap children_map_;
87 if (len < static_cast<int>(sizeof(disk_cache::SparseData))) in Start()
92 disk_cache::SparseData* data = in Start()
93 reinterpret_cast<disk_cache::SparseData*>(buffer); in Start()
96 int num_bits = (len - sizeof(disk_cache::SparseHeader)) * 8; in Start()
104 void ChildrenDeleter::ReadData(disk_cache::Addr address, int len) { in ReadData()
[all …]
Dmapped_file_unittest.cc20 class FileCallbackTest: public disk_cache::FileIOCallback {
43 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); in TEST_F()
58 scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); in TEST_F()
Dentry_unittest.cc27 void InternalSyncIOBackground(disk_cache::Entry* entry);
28 void ExternalSyncIOBackground(disk_cache::Entry* entry);
59 SyncIOTask(DiskCacheEntryTest* test, disk_cache::Entry* entry) in SyncIOTask()
64 disk_cache::Entry* entry_;
69 InternalSyncIOTask(DiskCacheEntryTest* test, disk_cache::Entry* entry) in InternalSyncIOTask()
78 void DiskCacheEntryTest::InternalSyncIOBackground(disk_cache::Entry* entry) { in InternalSyncIOBackground()
120 disk_cache::Entry* entry = NULL; in InternalSyncIO()
146 disk_cache::Entry* entry = NULL; in InternalAsyncIO()
290 ExternalSyncIOTask(DiskCacheEntryTest* test, disk_cache::Entry* entry) in ExternalSyncIOTask()
299 void DiskCacheEntryTest::ExternalSyncIOBackground(disk_cache::Entry* entry) { in ExternalSyncIOBackground()
[all …]
Dblock_files.cc34 void FixAllocationCounters(disk_cache::BlockFileHeader* header);
39 bool CreateMapBlock(int target, int size, disk_cache::BlockFileHeader* header, in CreateMapBlock()
41 if (target <= 0 || target > disk_cache::kMaxNumBlocks || in CreateMapBlock()
42 size <= 0 || size > disk_cache::kMaxNumBlocks) { in CreateMapBlock()
60 disk_cache::FileLock lock(header); in CreateMapBlock()
88 void DeleteMapBlock(int index, int size, disk_cache::BlockFileHeader* header) { in DeleteMapBlock()
89 if (size < 0 || size > disk_cache::kMaxNumBlocks) { in DeleteMapBlock()
108 disk_cache::FileLock lock(header); in DeleteMapBlock()
128 bool UsedMapBlock(int index, int size, disk_cache::BlockFileHeader* header) { in UsedMapBlock()
129 if (size < 0 || size > disk_cache::kMaxNumBlocks) { in UsedMapBlock()
[all …]
Ddisk_cache_test_util.cc67 scoped_refptr<disk_cache::File> file(new disk_cache::File( in CreateCacheTestFile()
77 disk_cache::DeleteCache(path, false); in DeleteCache()
96 scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( in CheckCacheIntegrity()
102 cache->SetFlags(disk_cache::kNoRandom); in CheckCacheIntegrity()
Dcache_util_unittest.cc11 namespace disk_cache { namespace
49 EXPECT_TRUE(disk_cache::MoveCache(cache_dir_, dest_dir_)); in TEST_F()
68 disk_cache::DeleteCache(cache_dir_, false); in TEST_F()
78 disk_cache::DeleteCache(cache_dir_, true); in TEST_F()
85 EXPECT_TRUE(disk_cache::DeleteCacheFile(file1_)); in TEST_F()
/external/chromium/net/tools/dump_cache/
Ddump_files.cc45 disk_cache::IndexHeader header; in GetMajorVersionFromFile()
54 disk_cache::IndexHeader header; in DumpIndexHeader()
81 disk_cache::BlockFileHeader header; in DumpBlockHeader()
122 bool GetEntry(disk_cache::EntryStore* entry);
125 bool LoadEntry(disk_cache::CacheAddr addr, disk_cache::EntryStore* entry);
126 bool LoadRankings(disk_cache::CacheAddr addr,
127 disk_cache::RankingsNode* rankings);
131 disk_cache::BlockFiles block_files_;
132 scoped_refptr<disk_cache::MappedFile> index_file_;
133 disk_cache::Index* index_;
[all …]
Dcache_dumper.h32 disk_cache::Entry** entry,
37 virtual int WriteEntry(disk_cache::Entry* entry, int stream, int offset,
42 virtual void CloseEntry(disk_cache::Entry* entry, base::Time last_used,
49 explicit CacheDumper(disk_cache::Backend* cache) : cache_(cache) {} in CacheDumper()
51 virtual int CreateEntry(const std::string& key, disk_cache::Entry** entry,
53 virtual int WriteEntry(disk_cache::Entry* entry, int stream, int offset,
56 virtual void CloseEntry(disk_cache::Entry* entry, base::Time last_used,
60 disk_cache::Backend* cache_;
69 virtual int CreateEntry(const std::string& key, disk_cache::Entry** entry,
71 virtual int WriteEntry(disk_cache::Entry* entry, int stream, int offset,
[all …]
Dcache_dumper.cc17 disk_cache::Entry** entry, in CreateEntry()
22 int CacheDumper::WriteEntry(disk_cache::Entry* entry, int index, int offset, in WriteEntry()
28 void CacheDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, in CloseEntry()
31 static_cast<disk_cache::EntryImpl*>(entry)->SetTimes(last_used, in CloseEntry()
68 disk_cache::Entry** entry, in CreateEntry()
148 int DiskDumper::WriteEntry(disk_cache::Entry* entry, int index, int offset, in WriteEntry()
205 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, in CloseEntry()
/external/chromium/net/http/
Dhttp_cache_unittest.cc71 class MockDiskEntry : public disk_cache::Entry,
369 class MockDiskCache : public disk_cache::Backend {
384 virtual int OpenEntry(const std::string& key, disk_cache::Entry** entry, in OpenEntry()
415 virtual int CreateEntry(const std::string& key, disk_cache::Entry** entry, in CreateEntry()
479 virtual int OpenNextEntry(void** iter, disk_cache::Entry** next_entry, in OpenNextEntry()
541 disk_cache::Backend** backend, in CreateBackend()
563 MockDiskCache* disk_cache() { in disk_cache() function in __anond9c04f320111::MockHttpCache
565 disk_cache::Backend* backend; in disk_cache()
572 static bool ReadResponseInfo(disk_cache::Entry* disk_entry, in ReadResponseInfo()
589 static bool WriteResponseInfo(disk_cache::Entry* disk_entry, in WriteResponseInfo()
[all …]
Ddisk_cache_based_ssl_host_info.h62 disk_cache::Backend** backend_pointer() { return &backend_; } in backend_pointer()
63 disk_cache::Entry** entry_pointer() { return &entry_; } in entry_pointer()
64 disk_cache::Backend* backend() const { return backend_; } in backend()
65 disk_cache::Entry* entry() const { return entry_; } in entry()
74 disk_cache::Backend* backend_;
75 disk_cache::Entry* entry_;
112 disk_cache::Backend* backend_;
113 disk_cache::Entry* entry_;
Dpartial_data.h14 namespace disk_cache {
57 int ShouldValidateCache(disk_cache::Entry* entry,
62 void PrepareCacheValidation(disk_cache::Entry* entry,
76 disk_cache::Entry* entry, bool truncated);
100 int CacheRead(disk_cache::Entry* entry, IOBuffer* data, int data_len,
105 int CacheWrite(disk_cache::Entry* entry, IOBuffer* data, int data_len,
Dhttp_cache.h37 namespace disk_cache {
89 disk_cache::Backend** backend,
108 disk_cache::Backend** backend,
155 int GetBackend(disk_cache::Backend** backend, CompletionCallback* callback);
158 disk_cache::Backend* GetCurrentBackend();
217 explicit ActiveEntry(disk_cache::Entry* entry);
220 disk_cache::Entry* disk_entry;
237 int CreateBackend(disk_cache::Backend** backend,
268 ActiveEntry* ActivateEntry(disk_cache::Entry* disk_entry);
365 scoped_ptr<disk_cache::Backend> disk_cache_;
/external/chromium/net/
Dnet.gyp373 'disk_cache/addr.cc',
374 'disk_cache/addr.h',
375 'disk_cache/backend_impl.cc',
376 'disk_cache/backend_impl.h',
377 'disk_cache/bitmap.cc',
378 'disk_cache/bitmap.h',
379 'disk_cache/block_files.cc',
380 'disk_cache/block_files.h',
381 'disk_cache/cache_util.h',
382 'disk_cache/cache_util_posix.cc',
[all …]
/external/chromium/
DAndroid.mk213 net/disk_cache/addr.cc \
214 net/disk_cache/backend_impl.cc \
215 net/disk_cache/bitmap.cc \
216 net/disk_cache/block_files.cc \
217 net/disk_cache/cache_util_posix.cc \
218 net/disk_cache/disk_format.cc \
219 net/disk_cache/entry_impl.cc \
220 net/disk_cache/eviction.cc \
221 net/disk_cache/file.cc \
222 net/disk_cache/file_lock.cc \
[all …]
/external/chromium/net/url_request/
Dview_cache_helper_unittest.cc24 disk_cache::Backend* GetBackend();
36 void WriteHeaders(disk_cache::Entry* entry, int flags, const std::string data) { in WriteHeaders()
55 void WriteData(disk_cache::Entry* entry, int index, const std::string data) { in WriteData()
68 void WriteToEntry(disk_cache::Backend* cache, const std::string key, in WriteToEntry()
72 disk_cache::Entry* entry; in WriteToEntry()
89 disk_cache::Backend* cache; in FillCache()
184 disk_cache::Backend* cache; in TEST()
190 disk_cache::Entry* entry; in TEST()

12345