Searched refs:cache_ (Results 1 - 25 of 161) sorted by relevance

1234567

/external/chromium_org/chrome/browser/extensions/token_cache/
H A Dtoken_cache_service_unittest.cc19 TokenCacheTest() : cache_(&profile_) {}
20 virtual ~TokenCacheTest() { cache_.Shutdown(); }
23 return cache_.token_cache_.size();
27 return cache_.RetrieveToken(token_name) != std::string();
43 cache_.token_cache_[token_name] = token_data;
48 TokenCacheService cache_; member in class:extensions::TokenCacheTest
53 cache_.StoreToken("foo", "bar", zero);
61 cache_.StoreToken("Mozart", "Eine Kleine Nacht Musik", zero);
62 cache_.StoreToken("Bach", "Brandenburg Concerto #3", zero);
63 cache_
[all...]
/external/chromium_org/components/omnibox/
H A Danswers_cache.cc24 for (Cache::iterator it = cache_.begin(); it != cache_.end(); ++it) {
28 cache_.splice(cache_.begin(), cache_, it);
29 return cache_.front();
38 for (Cache::iterator it = cache_.begin(); it != cache_.end(); ++it) {
41 cache_.splice(cache_
[all...]
H A Danswers_cache.h36 bool empty() const { return cache_.empty(); }
41 Cache cache_; member in class:AnswersCache
/external/chromium_org/net/ssl/
H A Dssl_client_auth_cache.cc25 AuthCacheMap::iterator iter = cache_.find(server);
26 if (iter == cache_.end())
35 cache_[server] = value;
41 cache_.erase(server);
45 cache_.clear();
/external/chromium_org/gpu/command_buffer/service/
H A Dprogram_cache_unittest.cc85 cache_(new NoBackendProgramCache()) { }
88 scoped_ptr<NoBackendProgramCache> cache_; member in class:gpu::gles2::ProgramCacheTest
98 cache_->GetLinkedProgramStatus(
100 cache_->SaySuccessfullyCached(shader_a, NULL, shader_b, NULL, NULL);
107 cache_->GetLinkedProgramStatus(
114 cache_->SaySuccessfullyCached(shader1, NULL, shader2, NULL, NULL);
118 cache_->GetLinkedProgramStatus(shader1, NULL, shader2, NULL, NULL));
124 cache_->SaySuccessfullyCached(shader1, NULL, shader2, NULL, NULL);
128 cache_->GetLinkedProgramStatus(shader1, NULL, shader2, NULL, NULL));
134 cache_
[all...]
H A Dshader_translator_cache.cc16 DCHECK(cache_.empty());
20 Cache::iterator it = cache_.begin();
21 while (it != cache_.end()) {
23 cache_.erase(it);
43 Cache::iterator it = cache_.find(params);
44 if (it != cache_.end())
51 cache_[params] = translator;
/external/chromium_org/chrome/browser/extensions/updater/
H A Dextension_cache_impl.cc44 : cache_(new LocalExtensionCache(base::FilePath(kLocalCacheDir),
56 cache_->Init(true, base::Bind(&ExtensionCacheImpl::OnCacheInitialized,
64 if (!cache_ || cache_->is_ready()) {
73 if (cache_)
74 cache_->Shutdown(callback);
86 if (cache_)
87 return cache_->GetExtension(id, file_path, version);
96 if (cache_ && ContainsKey(allowed_extensions_, id))
97 cache_
[all...]
H A Dextension_cache_fake.cc42 Map::iterator it = cache_.find(id);
43 if (it == cache_.end()) {
59 cache_[id].first = version;
60 cache_[id].second = file_path;
/external/chromium_org/chrome/browser/history/
H A Dtop_sites_cache_unittest.cc30 // update |cache_| so you can manipulate |top_sites_| before you update it.
33 // Initializes |top_sites_| and |cache_| based on |spec|.
37 TopSitesCache cache_; member in class:history::__anon4106::TopSitesCacheTest
65 cache_.SetTopSites(top_sites_);
107 EXPECT_EQ(expected, cache_.GetCanonicalURL(GURL(query)).spec())
115 EXPECT_TRUE(cache_.IsKnownURL(GURL("http://www.google.com")));
116 EXPECT_TRUE(cache_.IsKnownURL(GURL("http://www.gooogle.com")));
117 EXPECT_TRUE(cache_.IsKnownURL(GURL("http://www.google.com/")));
120 EXPECT_FALSE(cache_.IsKnownURL(GURL("http://www.google.com?")));
121 EXPECT_FALSE(cache_
[all...]
/external/chromium_org/components/variations/
H A Dcaching_permuted_entropy_provider.cc58 !cache_.ParseFromString(cache_data)) {
66 cache_.SerializeToString(&serialized);
78 if (cache_.entry_size() >= kMaxSize) {
85 cache_.mutable_entry()->SwapElements(i - 1, i);
86 entry = cache_.mutable_entry(kMaxSize - 1);
88 entry = cache_.add_entry();
99 for (int i = 0; i < cache_.entry_size(); ++i) {
100 if (cache_.entry(i).randomization_seed() == randomization_seed) {
101 *value = cache_.entry(i).value();
/external/chromium_org/third_party/leveldatabase/src/util/
H A Dcache_test.cc38 Cache* cache_; member in class:leveldb::CacheTest
40 CacheTest() : cache_(NewLRUCache(kCacheSize)) {
45 delete cache_;
49 Cache::Handle* handle = cache_->Lookup(EncodeKey(key));
50 const int r = (handle == NULL) ? -1 : DecodeValue(cache_->Value(handle));
52 cache_->Release(handle);
58 cache_->Release(cache_->Insert(EncodeKey(key), EncodeValue(value), charge,
63 cache_->Erase(EncodeKey(key));
112 Cache::Handle* h1 = cache_
[all...]
/external/chromium_org/content/common/
H A Dfont_cache_dispatcher_win.cc57 if (cache_[font_name].ref_count_ == 0) { // Requested font is new to cache.
58 cache_[font_name].ref_count_ = 1;
60 SelectObject(cache_[font_name].dc_, cache_[font_name].old_font_);
61 DeleteObject(cache_[font_name].font_);
62 ReleaseDC(NULL, cache_[font_name].dc_);
64 cache_[font_name].font_ = font_handle;
65 cache_[font_name].dc_ = hdc;
66 cache_[font_name].old_font_ = old_font;
67 cache_[font_nam
128 std::map<base::string16, CacheElement> cache_; member in class:content::__anon7576::FontCache
[all...]
/external/chromium_org/sdch/open-vcdiff/src/
H A Daddrcache_test.cc48 EXPECT_TRUE(cache_.Init());
108 EXPECT_EQ(mode, cache_.EncodeAddress(address, here_address, &encoded_addr));
109 if (cache_.WriteAddressAsVarintForMode(mode)) {
118 VCDiffAddressCache cache_; member in class:open_vcdiff::__anon10648::VCDiffAddressCacheTest
214 EXPECT_EQ(0, cache_.NearAddress(test_address));
217 EXPECT_EQ(0, cache_.SameAddress(test_address));
227 cache_.UpdateCache(test_address);
229 EXPECT_EQ(9, cache_.NearAddress(0)); // slot 0: 1 => 5 => 9
230 EXPECT_EQ(10, cache_.NearAddress(1)); // slot 1: 2 => 6 => 10
231 EXPECT_EQ(7, cache_
[all...]
/external/chromium_org/chrome/common/
H A Dinstant_restricted_id_cache.h77 mutable CacheImpl cache_; member in class:InstantRestrictedIDCache
86 : cache_(max_cache_size),
87 last_add_start_(cache_.rend()),
98 DCHECK_LE(items.size(), cache_.max_size());
101 last_add_start_ = cache_.rend();
107 cache_.Put(id, items[i]);
109 last_add_start_ = --cache_.rend();
116 DCHECK_LE(items.size(), cache_.max_size());
119 last_add_start_ = cache_.rend();
130 cache_
[all...]
/external/chromium_org/v8/src/
H A Dbootstrapper.h20 explicit SourceCodeCache(Script::Type type): type_(type), cache_(NULL) { }
23 cache_ = create_heap_objects ? isolate->heap()->empty_fixed_array() : NULL;
27 v->VisitPointer(bit_cast<Object**, FixedArray**>(&cache_));
31 for (int i = 0; i < cache_->length(); i+=2) {
32 SeqOneByteString* str = SeqOneByteString::cast(cache_->get(i));
35 SharedFunctionInfo::cast(cache_->get(i + 1)));
46 int length = cache_->length();
48 cache_->CopyTo(0, *new_array, 0, cache_->length());
49 cache_
60 FixedArray* cache_; member in class:v8::internal::BASE_EMBEDDED
[all...]
/external/chromium_org/net/dns/
H A Dmdns_cache_unittest.cc142 MDnsCache cache_; member in class:net::MDnsCacheTest
158 EXPECT_EQ(MDnsCache::RecordAdded, cache_.UpdateDnsRecord(record1.Pass()));
160 EXPECT_EQ(MDnsCache::RecordAdded, cache_.UpdateDnsRecord(record2.Pass()));
162 cache_.FindDnsRecords(ARecordRdata::kType, "ghs.l.google.com", &results,
171 cache_.FindDnsRecords(PtrRecordRdata::kType, "ghs.l.google.com", &results,
195 EXPECT_EQ(MDnsCache::RecordAdded, cache_.UpdateDnsRecord(record1.Pass()));
196 EXPECT_EQ(MDnsCache::RecordAdded, cache_.UpdateDnsRecord(record2.Pass()));
198 cache_.FindDnsRecords(ARecordRdata::kType, "ghs.l.google.com", &results,
203 EXPECT_EQ(default_time_ + ttl2, cache_.next_expiration());
206 cache_
[all...]
/external/chromium_org/chrome/browser/profiles/
H A Dprofile_avatar_downloader.cc25 cache_(cache) {
49 if (!bitmap || !cache_)
52 // Decode the downloaded bitmap. Ownership of the image is taken by |cache_|.
54 cache_->SaveAvatarImageAtPath(&image,
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dremove_stale_cache_files_unittest.cc34 cache_.reset(new FileCache(metadata_storage_.get(),
40 metadata_storage_.get(), cache_.get(),
44 ASSERT_TRUE(cache_->Initialize());
53 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_; member in class:drive::internal::RemoveStaleCacheFilesTest
73 cache_->Store(local_id, md5_cache, dummy_file,
77 RemoveStaleCacheFiles(cache_.get(), resource_metadata_.get());
100 cache_->Store(local_id, std::string(), dummy_file,
104 RemoveStaleCacheFiles(cache_.get(), resource_metadata_.get());
H A Dfile_cache_unittest.cc51 cache_.reset(new FileCache(
56 ASSERT_TRUE(cache_->Initialize());
69 scoped_ptr<FileCache, test_util::DestroyHelperForTests> cache_; member in class:drive::internal::FileCacheTest
83 EXPECT_EQ(FILE_ERROR_OK, cache_->Store("id_foo", "md5", src_path,
100 EXPECT_TRUE(cache_->RecoverFilesFromCacheDirectory(dest_directory,
136 cache_->Store(id_tmp, md5_tmp, src_file,
139 ASSERT_EQ(FILE_ERROR_OK, cache_->GetFile(id_tmp, &tmp_path));
147 cache_->Store(id_pinned, md5_pinned, src_file,
149 ASSERT_EQ(FILE_ERROR_OK, cache_->Pin(id_pinned));
151 ASSERT_EQ(FILE_ERROR_OK, cache_
[all...]
/external/chromium_org/chrome/test/chromedriver/js/
H A Dcall_function.js43 this.cache_ = {};
57 for (var i in this.cache_) {
58 if (item == this.cache_[i])
62 this.cache_[id] = item;
74 var item = this.cache_[id];
87 for (var id in this.cache_) {
88 var node = this.cache_[id];
90 delete this.cache_[id];
/external/chromium_org/components/search_provider_logos/
H A Dlogo_cache_unittest.cc104 cache_.reset(new LogoCache(
109 const LogoMetadata* retrieved_metadata = cache_->GetCachedLogoMetadata();
119 scoped_ptr<EncodedLogo> retrieved_logo(cache_->GetCachedLogo());
134 scoped_ptr<LogoCache> cache_; member in class:search_provider_logos::LogoCacheTest
173 cache_->SetCachedLogo(&logo);
178 cache_->UpdateCachedLogoMetadata(metadata);
186 base::DeleteFile(cache_->GetMetadataPath(), false);
196 cache_->SetCachedLogo(&logo);
200 cache_->SetCachedLogo(NULL);
209 cache_
[all...]
/external/chromium_org/net/socket/
H A Dssl_session_cache_openssl_unittest.cc114 cache_.Reset(ctx_.get(), kDefaultConfig);
119 cache_.Reset(ctx_.get(), config);
148 // |cache_| must be destroyed before |ctx_| and thus appears after it.
149 SSLSessionCacheOpenSSL cache_; member in class:net::SSLSessionCacheOpenSSLTest
162 EXPECT_EQ(0U, cache_.size());
168 EXPECT_EQ(0U, cache_.size());
170 EXPECT_EQ(1U, cache_.size());
172 EXPECT_EQ(1U, cache_.size());
184 EXPECT_EQ(n + 1, cache_.size());
198 EXPECT_EQ(kNumItems, cache_
[all...]
/external/chromium_org/components/dom_distiller/core/
H A Ddistilled_content_store.cc12 : cache_(max_num_entries, CacheDeletor(this)) {
18 cache_.Clear();
38 ContentMap::const_iterator it = cache_.Get(entry.entry_id());
39 bool success = it != cache_.end();
45 it = cache_.Get(url_it->second);
46 success = it != cache_.end();
66 cache_.Put(entry.entry_id(), proto);
/external/chromium_org/ui/views/accessibility/
H A Dax_aura_obj_cache.cc61 std::map<int32, AXAuraObjWrapper*>::iterator it = cache_.find(id);
63 if (it == cache_.end())
75 cache_.erase(id);
83 STLDeleteContainerPairSecondPointers(cache_.begin(), cache_.end());
84 cache_.clear();
101 cache_[current_id_] = wrapper;
/external/chromium_org/chrome/browser/chromeos/policy/
H A Dcloud_external_data_store.cc36 cache_(cache) {
51 cache_->PurgeOtherSubkeys(cache_key_, subkeys_to_keep);
58 return cache_->Store(cache_key_, GetSubkey(policy, hash), data);
67 if (cache_->Load(cache_key_, subkey, data)) {
72 cache_->Delete(cache_key_, subkey);

Completed in 1333 milliseconds

1234567