Home
last modified time | relevance | path

Searched refs:cache_entry (Results 1 – 25 of 53) sorted by relevance

123

/external/chromium_org/chrome/browser/chromeos/drive/
Dfile_cache.cc126 FileCacheEntry cache_entry; in GetFile() local
127 if (!storage_->GetCacheEntry(id, &cache_entry) || in GetFile()
128 !cache_entry.is_present()) in GetFile()
151 FileCacheEntry cache_entry; in Store() local
152 storage_->GetCacheEntry(id, &cache_entry); in Store()
155 if (cache_entry.is_dirty() || mounted_files_.count(id)) in Store()
180 cache_entry.set_md5(md5); in Store()
181 cache_entry.set_is_present(true); in Store()
182 cache_entry.set_is_dirty(false); in Store()
183 return storage_->PutCacheEntry(id, cache_entry) ? in Store()
[all …]
Dsync_client_unittest.cc274 FileCacheEntry cache_entry; in TEST_F() local
276 EXPECT_TRUE(cache_->GetCacheEntry(GetLocalId("foo"), &cache_entry)); in TEST_F()
277 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
279 EXPECT_TRUE(cache_->GetCacheEntry(GetLocalId("bar"), &cache_entry)); in TEST_F()
280 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
282 EXPECT_TRUE(cache_->GetCacheEntry(GetLocalId("baz"), &cache_entry)); in TEST_F()
283 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
286 EXPECT_TRUE(cache_->GetCacheEntry(GetLocalId("dirty"), &cache_entry)); in TEST_F()
287 EXPECT_FALSE(cache_entry.is_dirty()); in TEST_F()
317 FileCacheEntry cache_entry; in TEST_F() local
[all …]
Dresource_metadata_storage_unittest.cc169 FileCacheEntry cache_entry; in TEST_F() local
170 if (it->GetCacheEntry(&cache_entry)) in TEST_F()
171 found_cache_entries[it->GetID()] = cache_entry; in TEST_F()
217 FileCacheEntry cache_entry; in TEST_F() local
219 cache_entry.set_md5("aA"); in TEST_F()
220 entries["entry1"] = cache_entry; in TEST_F()
221 cache_entry.set_md5("bB"); in TEST_F()
222 entries["entry2"] = cache_entry; in TEST_F()
223 cache_entry.set_md5("cC"); in TEST_F()
224 entries["entry3"] = cache_entry; in TEST_F()
[all …]
Dremove_stale_cache_files_unittest.cc71 FileCacheEntry cache_entry; in TEST_F() local
72 EXPECT_TRUE(cache_->GetCacheEntry(local_id, &cache_entry)); in TEST_F()
82 EXPECT_FALSE(cache_->GetCacheEntry(local_id, &cache_entry)); in TEST_F()
119 FileCacheEntry cache_entry; in TEST_F() local
120 EXPECT_FALSE(cache_->GetCacheEntry(local_id_1, &cache_entry)); in TEST_F()
121 EXPECT_TRUE(cache_->GetCacheEntry(local_id_2, &cache_entry)); in TEST_F()
Dfile_cache_unittest.cc120 FileCacheEntry cache_entry; in TestStoreToCache() local
121 EXPECT_TRUE(GetCacheEntryFromOriginThread(id, &cache_entry)); in TestStoreToCache()
122 EXPECT_EQ(md5, cache_entry.md5()); in TestStoreToCache()
146 FileCacheEntry cache_entry; in VerifyRemoveFromCache() local
147 if (!GetCacheEntryFromOriginThread(id, &cache_entry)) { in VerifyRemoveFromCache()
246 FileCacheEntry cache_entry; in TestClearDirty() local
247 EXPECT_TRUE(GetCacheEntryFromOriginThread(id, &cache_entry)); in TestClearDirty()
248 EXPECT_EQ(md5, cache_entry.md5()); in TestClearDirty()
316 FileCacheEntry cache_entry; in VerifyCacheFileState() local
318 GetCacheEntryFromOriginThread(id, &cache_entry); in VerifyCacheFileState()
[all …]
Dsync_client.cc75 FileCacheEntry cache_entry; in CollectBacklog() local
76 if (it->GetCacheEntry(&cache_entry)) { in CollectBacklog()
77 if (cache_entry.is_pinned() && !cache_entry.is_present()) in CollectBacklog()
80 if (cache_entry.is_dirty()) in CollectBacklog()
93 const FileCacheEntry& cache_entry = it->GetValue(); in CheckExistingPinnedFiles() local
95 if (!cache_entry.is_pinned() || !cache_entry.is_present()) in CheckExistingPinnedFiles()
108 if (entry.file_specific_info().md5() == cache_entry.md5() || in CheckExistingPinnedFiles()
109 cache_entry.is_dirty()) in CheckExistingPinnedFiles()
Dfile_system_unittest.cc606 FileCacheEntry cache_entry; in TEST_F() local
607 EXPECT_TRUE(cache_->GetCacheEntry(entry->local_id(), &cache_entry)); in TEST_F()
608 EXPECT_TRUE(cache_entry.is_pinned()); in TEST_F()
609 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
618 EXPECT_TRUE(cache_->GetCacheEntry(entry->local_id(), &cache_entry)); in TEST_F()
619 EXPECT_FALSE(cache_entry.is_pinned()); in TEST_F()
652 FileCacheEntry cache_entry; in TEST_F() local
653 EXPECT_FALSE(cache_->GetCacheEntry(entry->local_id(), &cache_entry)); in TEST_F()
Dfile_system.cc69 FileCacheEntry cache_entry; in GetLocallyStoredResourceEntry() local
70 if (!cache->GetCacheEntry(local_id, &cache_entry) || !cache_entry.is_dirty()) in GetLocallyStoredResourceEntry()
158 FileCacheEntry* cache_entry) { in GetCacheEntryInternal() argument
163 return cache->GetCacheEntry(id, cache_entry); in GetCacheEntryInternal()
168 const FileCacheEntry* cache_entry, in RunGetCacheEntryCallback() argument
171 callback.Run(success, *cache_entry); in RunGetCacheEntryCallback()
988 FileCacheEntry* cache_entry = new FileCacheEntry; in GetCacheEntry() local
996 cache_entry), in GetCacheEntry()
999 base::Owned(cache_entry))); in GetCacheEntry()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dcompiled_file_system.py213 cache_entry = self._file_object_store.Get(path).Get()
214 if (cache_entry is not None) and (version == cache_entry.version):
215 return Future(value=cache_entry._cache_data)
236 cache_entry = self._list_object_store.Get(path).Get()
237 if (cache_entry is not None) and (version == cache_entry.version):
238 return Future(value=cache_entry._cache_data)
248 cache_entry = self._file_object_store.Get(path).Get()
249 if cache_entry is not None:
250 return cache_entry.version
256 cache_entry = self._list_object_store.Get(path).Get()
[all …]
/external/chromium_org/net/disk_cache/v3/
Dbackend_impl_v3.cc518 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); in OpenEntryImpl() local
519 if (cache_entry && ENTRY_NORMAL != cache_entry->entry()->Data()->state) { in OpenEntryImpl()
521 cache_entry->Release(); in OpenEntryImpl()
522 cache_entry = NULL; in OpenEntryImpl()
530 if (!cache_entry) { in OpenEntryImpl()
539 eviction_.OnOpenEntry(cache_entry); in OpenEntryImpl()
543 cache_entry->entry()->address().value()); in OpenEntryImpl()
550 return cache_entry; in OpenEntryImpl()
609 scoped_refptr<EntryImpl> cache_entry( in CreateEntryImpl() local
613 if (!cache_entry->CreateEntry(node_address, key, hash)) { in CreateEntryImpl()
[all …]
/external/chromium_org/net/disk_cache/
Dbackend_impl.cc453 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); in SyncOnExternalCacheHit() local
454 if (cache_entry) { in SyncOnExternalCacheHit()
455 if (ENTRY_NORMAL == cache_entry->entry()->Data()->state) { in SyncOnExternalCacheHit()
456 UpdateRank(cache_entry, cache_type() == net::SHADER_CACHE); in SyncOnExternalCacheHit()
458 cache_entry->Release(); in SyncOnExternalCacheHit()
471 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); in OpenEntryImpl() local
472 if (cache_entry && ENTRY_NORMAL != cache_entry->entry()->Data()->state) { in OpenEntryImpl()
474 cache_entry->Release(); in OpenEntryImpl()
475 cache_entry = NULL; in OpenEntryImpl()
483 if (!cache_entry) { in OpenEntryImpl()
[all …]
Ddisk_cache_perftest.cc64 disk_cache::Entry* cache_entry; in TimeWrite() local
66 int rv = cache->CreateEntry(entry.key, &cache_entry, cb.callback()); in TimeWrite()
69 int ret = cache_entry->WriteData( in TimeWrite()
77 ret = cache_entry->WriteData( in TimeWrite()
84 cache_entry->Close(); in TimeWrite()
113 disk_cache::Entry* cache_entry; in TimeRead() local
115 int rv = cache->OpenEntry(entries[i].key, &cache_entry, cb.callback()); in TimeRead()
118 int ret = cache_entry->ReadData( in TimeRead()
126 ret = cache_entry->ReadData( in TimeRead()
133 cache_entry->Close(); in TimeRead()
Dmem_backend_impl.cc218 MemEntryImpl* cache_entry = new MemEntryImpl(this); in CreateEntry() local
219 if (!cache_entry->CreateEntry(key, net_log_)) { in CreateEntry()
224 rankings_.Insert(cache_entry); in CreateEntry()
225 entries_[key] = cache_entry; in CreateEntry()
227 *entry = cache_entry; in CreateEntry()
/external/chromium/net/disk_cache/
Dbackend_impl.cc675 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); in OpenEntryImpl() local
676 if (!cache_entry) { in OpenEntryImpl()
681 if (ENTRY_NORMAL != cache_entry->entry()->Data()->state) { in OpenEntryImpl()
683 cache_entry->Release(); in OpenEntryImpl()
688 eviction_.OnOpenEntry(cache_entry); in OpenEntryImpl()
694 return cache_entry; in OpenEntryImpl()
754 scoped_refptr<EntryImpl> cache_entry( in CreateEntryImpl() local
758 if (!cache_entry->CreateEntry(node_address, key, hash)) { in CreateEntryImpl()
766 cache_entry->BeginLogging(net_log_, true); in CreateEntryImpl()
769 open_entries_[entry_address.value()] = cache_entry; in CreateEntryImpl()
[all …]
Ddisk_cache_perftest.cc68 disk_cache::Entry* cache_entry; in TimeWrite() local
70 int rv = cache->CreateEntry(entry.key, &cache_entry, &cb); in TimeWrite()
73 int ret = cache_entry->WriteData(0, 0, buffer1, kSize1, &callback, false); in TimeWrite()
79 ret = cache_entry->WriteData(1, 0, buffer2, entry.data_len, &callback, in TimeWrite()
85 cache_entry->Close(); in TimeWrite()
116 disk_cache::Entry* cache_entry; in TimeRead() local
118 int rv = cache->OpenEntry(entries[i].key, &cache_entry, &cb); in TimeRead()
121 int ret = cache_entry->ReadData(0, 0, buffer1, kSize1, &callback); in TimeRead()
127 ret = cache_entry->ReadData(1, 0, buffer2, entries[i].data_len, &callback); in TimeRead()
132 cache_entry->Close(); in TimeRead()
Dmem_backend_impl.cc210 MemEntryImpl* cache_entry = new MemEntryImpl(this); in CreateEntry() local
211 if (!cache_entry->CreateEntry(key, net_log_)) { in CreateEntry()
216 rankings_.Insert(cache_entry); in CreateEntry()
217 entries_[key] = cache_entry; in CreateEntry()
219 *entry = cache_entry; in CreateEntry()
/external/chromium_org/ppapi/proxy/
Dflash_resource.cc125 LocalTimeZoneOffsetEntry cache_entry; in GetLocalTimeZoneOffset() local
126 cache_entry.expiration = now + expiration_delta; in GetLocalTimeZoneOffset()
127 cache_entry.offset = 0.0; in GetLocalTimeZoneOffset()
137 &cache_entry.offset); in GetLocalTimeZoneOffset()
139 cache_entry.offset = 0.0; in GetLocalTimeZoneOffset()
141 cache_entry.offset = PPGetLocalTimeZoneOffset(PPTimeToTime(t)); in GetLocalTimeZoneOffset()
144 cache.Put(t_minute_base, cache_entry); in GetLocalTimeZoneOffset()
145 return cache_entry.offset; in GetLocalTimeZoneOffset()
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dupdate_operation_unittest.cc111 FileCacheEntry cache_entry; in TEST_F() local
118 &cache_entry), in TEST_F()
122 EXPECT_FALSE(cache_entry.is_dirty()); in TEST_F()
202 FileCacheEntry cache_entry; in TEST_F() local
209 &cache_entry), in TEST_F()
213 EXPECT_FALSE(cache_entry.is_dirty()); in TEST_F()
250 &cache_entry), in TEST_F()
254 EXPECT_FALSE(cache_entry.is_dirty()); in TEST_F()
Dget_file_for_saving_operation_unittest.cc96 FileCacheEntry cache_entry; in TEST_F() local
103 &cache_entry), in TEST_F()
107 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
108 EXPECT_TRUE(cache_entry.is_dirty()); in TEST_F()
Dcopy_operation_unittest.cc62 FileCacheEntry cache_entry; in TEST_F() local
70 &cache_entry), in TEST_F()
74 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
75 EXPECT_TRUE(cache_entry.is_dirty()); in TEST_F()
Dopen_file_operation_unittest.cc172 FileCacheEntry cache_entry; in TEST_F() local
179 &cache_entry), in TEST_F()
183 EXPECT_TRUE(cache_entry.is_present()); in TEST_F()
184 EXPECT_TRUE(cache_entry.is_dirty()); in TEST_F()
Ddownload_operation.cc79 FileCacheEntry cache_entry; in CheckPreConditionForEnsureFileDownloaded() local
80 if (!cache->GetCacheEntry(local_id, &cache_entry)) in CheckPreConditionForEnsureFileDownloaded()
85 if (!cache_entry.is_dirty() && in CheckPreConditionForEnsureFileDownloaded()
86 entry->file_specific_info().md5() != cache_entry.md5()) in CheckPreConditionForEnsureFileDownloaded()
99 if (cache_entry.is_dirty()) { in CheckPreConditionForEnsureFileDownloaded()
/external/chromium_org/chrome/browser/predictors/
Dresource_prefetch_predictor.cc857 PrefetchDataMap::iterator cache_entry = data_map->find(key); in LearnNavigation() local
858 if (cache_entry == data_map->end()) { in LearnNavigation()
864 cache_entry = data_map->insert(std::make_pair( in LearnNavigation()
866 cache_entry->second.last_visit = base::Time::Now(); in LearnNavigation()
879 cache_entry->second.resources.push_back(row_to_add); in LearnNavigation()
883 ResourceRows& old_resources = cache_entry->second.resources; in LearnNavigation()
884 cache_entry->second.last_visit = base::Time::Now(); in LearnNavigation()
945 ResourceRows& resources = cache_entry->second.resources; in LearnNavigation()
974 const PrefetchData& host_data = is_host ? cache_entry->second : empty_data; in LearnNavigation()
975 const PrefetchData& url_data = is_host ? empty_data : cache_entry->second; in LearnNavigation()
/external/chromium_org/google_apis/gaia/
Doauth2_token_service.cc525 const CacheEntry* cache_entry = GetCacheEntry(request_parameters); in StartCacheLookupRequest() local
530 cache_entry->access_token, in StartCacheLookupRequest()
531 cache_entry->expiration_date)); in StartCacheLookupRequest()
609 const CacheEntry* cache_entry = GetCacheEntry(request_parameters); in HasCacheEntry() local
610 return cache_entry && cache_entry->access_token.length(); in HasCacheEntry()
/external/v8/src/
Dprofile-generator.cc129 HashMap::Entry* cache_entry = names_.Lookup(str, hash, true); in AddOrDisposeString() local
130 if (cache_entry->value == NULL) { in AddOrDisposeString()
132 cache_entry->value = str; in AddOrDisposeString()
136 return reinterpret_cast<const char*>(cache_entry->value); in AddOrDisposeString()
1529 HashMap::Entry* cache_entry = entries_.Lookup(thing, Hash(thing), false); in Map() local
1530 if (cache_entry != NULL) { in Map()
1531 EntryInfo* entry_info = reinterpret_cast<EntryInfo*>(cache_entry->value); in Map()
1541 HashMap::Entry* cache_entry = entries_.Lookup(thing, Hash(thing), true); in Pair() local
1542 ASSERT(cache_entry->value == NULL); in Pair()
1543 cache_entry->value = new EntryInfo(entry, allocator); in Pair()
[all …]

123