Home
last modified time | relevance | path

Searched refs:entry_ (Results 1 – 25 of 128) sorted by relevance

123456

/external/chromium_org/sync/internal_api/
Dread_node.cc18 : entry_(NULL), transaction_(transaction) { in ReadNode()
23 entry_ = NULL; in ReadNode()
28 delete entry_; in ~ReadNode()
32 DCHECK(!entry_) << "Init called twice"; in InitByRootLookup()
34 entry_ = new syncable::Entry(trans, syncable::GET_BY_ID, trans->root_id()); in InitByRootLookup()
35 if (!entry_->good()) in InitByRootLookup()
40 DCHECK(!entry_) << "Init called twice"; in InitByIdLookup()
43 entry_ = new syncable::Entry(trans, syncable::GET_BY_HANDLE, id); in InitByIdLookup()
44 if (!entry_->good()) in InitByIdLookup()
46 if (entry_->GetIsDel()) in InitByIdLookup()
[all …]
Dwrite_node.cc37 if (entry_->GetIsDir() == folder) in SetIsFolder()
40 entry_->PutIsDir(folder); in SetIsFolder()
50 entry_->GetSpecifics().has_encrypted(); in SetTitle()
66 entry_->GetSpecifics().has_encrypted()) { in SetTitle()
73 current_legal_title = entry_->GetNonUniqueName(); in SetTitle()
78 entry_->GetNonUniqueName() != kEncryptedString); in SetTitle()
100 entry_->PutNonUniqueName(kEncryptedString); in SetTitle()
102 entry_->PutNonUniqueName(new_legal_title); in SetTitle()
235 const sync_pb::EntitySpecifics& old_specifics = entry_->GetSpecifics(); in SetEntitySpecifics()
244 entry_)) { in SetEntitySpecifics()
[all …]
/external/chromium/net/url_request/
Durl_request_throttler_unittest.cc224 scoped_refptr<MockURLRequestThrottlerEntry> entry_; member in net::URLRequestThrottlerEntryTest
229 entry_ = new MockURLRequestThrottlerEntry(&manager_); in SetUp()
230 entry_->ResetToBlank(now_); in SetUp()
238 entry_->set_exponential_backoff_release_time( in TEST_F()
239 entry_->fake_time_now_ + TimeDelta::FromMilliseconds(1)); in TEST_F()
240 EXPECT_TRUE(entry_->IsDuringExponentialBackoff()); in TEST_F()
244 entry_->set_exponential_backoff_release_time(entry_->fake_time_now_); in TEST_F()
245 EXPECT_FALSE(entry_->IsDuringExponentialBackoff()); in TEST_F()
246 entry_->set_exponential_backoff_release_time( in TEST_F()
247 entry_->fake_time_now_ - TimeDelta::FromMilliseconds(1)); in TEST_F()
[all …]
Dview_cache_helper.cc78 entry_(NULL), in ViewCacheHelper()
93 if (entry_) in ~ViewCacheHelper()
94 entry_->Close(); in ~ViewCacheHelper()
243 return disk_cache_->OpenNextEntry(&iter_, &entry_, &cache_callback_); in DoOpenNextEntry()
253 data_->append(FormatEntryInfo(entry_, url_prefix_)); in DoOpenNextEntryComplete()
254 entry_->Close(); in DoOpenNextEntryComplete()
255 entry_ = NULL; in DoOpenNextEntryComplete()
263 return disk_cache_->OpenEntry(key_, &entry_, &cache_callback_); in DoOpenEntry()
273 data_->append(EscapeForHTML(entry_->GetKey())); in DoOpenEntryComplete()
280 buf_len_ = entry_->GetDataSize(0); in DoReadResponse()
[all …]
/external/chromium_org/net/url_request/
Durl_request_throttler_unittest.cc188 scoped_refptr<MockURLRequestThrottlerEntry> entry_; member in net::URLRequestThrottlerEntryTest
209 entry_ = new MockURLRequestThrottlerEntry(&manager_); in SetUp()
210 entry_->ResetToBlank(now_); in SetUp()
258 entry_->set_exponential_backoff_release_time( in TEST_F()
259 entry_->fake_time_now_ + TimeDelta::FromMilliseconds(1)); in TEST_F()
262 EXPECT_FALSE(entry_->ShouldRejectRequest(request_)); in TEST_F()
264 EXPECT_TRUE(entry_->ShouldRejectRequest(request_)); in TEST_F()
268 entry_->set_exponential_backoff_release_time( in TEST_F()
269 entry_->fake_time_now_ + TimeDelta::FromMilliseconds(1)); in TEST_F()
270 EXPECT_TRUE(entry_->ShouldRejectRequest(request_)); in TEST_F()
[all …]
Dview_cache_helper.cc47 entry_(NULL), in ViewCacheHelper()
57 if (entry_) in ~ViewCacheHelper()
58 entry_->Close(); in ~ViewCacheHelper()
246 &iter_, &entry_, in DoOpenNextEntry()
257 data_->append(FormatEntryInfo(entry_, url_prefix_)); in DoOpenNextEntryComplete()
258 entry_->Close(); in DoOpenNextEntryComplete()
259 entry_ = NULL; in DoOpenNextEntryComplete()
268 key_, &entry_, in DoOpenEntry()
279 data_->append(EscapeForHTML(entry_->GetKey())); in DoOpenEntryComplete()
286 buf_len_ = entry_->GetDataSize(0); in DoReadResponse()
[all …]
/external/chromium_org/net/disk_cache/flash/
Dinternal_entry.cc25 entry_(new LogStoreEntry(store_)) { in InternalEntry()
26 entry_->Init(); in InternalEntry()
27 WriteKey(entry_.get(), key); in InternalEntry()
32 entry_(new LogStoreEntry(store_, id)) { in InternalEntry()
40 if (entry_->IsNew()) in Init()
42 if (!entry_->Init()) in Init()
46 if (!ReadKey(entry_.get(), &rv->key)) in Init()
49 rv->stream_sizes[i] = entry_->GetDataSize(i+1); in Init()
54 return entry_->GetDataSize(++index); in GetDataSize()
59 return entry_->ReadData(++index, offset, buf, buf_len); in ReadData()
[all …]
/external/chromium/net/disk_cache/
Dentry_impl.cc38 : entry_(entry), callback_(callback), buf_(buffer), in SyncCallback()
49 disk_cache::EntryImpl* entry_; member in __anona6a055680111::SyncCallback
59 entry_->DecrementIoCount(); in OnFileIOComplete()
61 if (entry_->net_log().IsLoggingAllEvents()) { in OnFileIOComplete()
62 entry_->net_log().EndEvent( in OnFileIOComplete()
67 entry_->ReportIOTime(disk_cache::EntryImpl::kAsyncIO, start_); in OnFileIOComplete()
70 entry_->Release(); in OnFileIOComplete()
295 : entry_(NULL, Addr(0)), node_(NULL, Addr(0)), backend_(backend), in EntryImpl()
297 entry_.LazyInit(backend->File(address), address); in EntryImpl()
400 return entry_.Data()->hash; in GetHash()
[all …]
Dsparse_control.cc187 : entry_(entry), in SparseControl()
208 if (entry_->GetDataSize(kSparseData)) in Init()
213 int data_len = entry_->GetDataSize(kSparseIndex); in Init()
228 if (entry_->GetDataSize(kSparseData)) in CouldBeSparse()
232 return (entry_->GetDataSize(kSparseIndex) != 0); in CouldBeSparse()
267 if (entry_->net_log().IsLoggingAllEvents()) { in StartIO()
268 entry_->net_log().BeginEvent( in StartIO()
318 entry_->AddRef(); // Balanced in DoAbortCallbacks. in ReadyToUse()
360 if (CHILD_ENTRY & entry_->GetEntryFlags()) in CreateSparseEntry()
366 sparse_header_.parent_key_len = entry_->GetKey().size(); in CreateSparseEntry()
[all …]
/external/chromium_org/net/disk_cache/v3/
Dentry_impl_v3.cc241 : entry_(NULL, Addr(0)), node_(NULL, Addr(0)), in EntryImpl()
244 entry_.LazyInit(backend->File(address), address); in EntryImpl()
253 EntryStore* entry_store = entry_.Data(); in CreateEntry()
255 memset(entry_store, 0, sizeof(EntryStore) * entry_.address().num_blocks()); in CreateEntry()
261 node->contents = entry_.address().value(); in CreateEntry()
298 return entry_.Data()->hash; in GetHash()
302 if (entry_.Data()->hash != hash || in IsSameEntry()
303 static_cast<size_t>(entry_.Data()->key_len) != key.size()) in IsSameEntry()
324 if (!entry_.VerifyHash()) in SanityCheck()
327 EntryStore* stored = entry_.Data(); in SanityCheck()
[all …]
Dsparse_control_v3.cc190 : entry_(entry), in SparseControl()
218 if (entry_->GetDataSize(kSparseData)) in CouldBeSparse()
222 return (entry_->GetDataSize(kSparseIndex) != 0); in CouldBeSparse()
257 if (entry_->net_log().IsLoggingAllEvents()) { in StartIO()
258 entry_->net_log().BeginEvent( in StartIO()
309 entry_->AddRef(); // Balanced in DoAbortCallbacks. in ReadyToUse()
357 if (entry_->GetDataSize(kSparseData)) in Init()
362 int data_len = entry_->GetDataSize(kSparseIndex); in Init()
377 if (CHILD_ENTRY & entry_->GetEntryFlags()) in CreateSparseEntry()
383 sparse_header_.parent_key_len = entry_->GetKey().size(); in CreateSparseEntry()
[all …]
/external/chromium/net/http/
Ddisk_cache_based_ssl_host_info.cc22 entry_(NULL) { in CallbackImpl()
50 entry_(NULL), in DiskCacheBasedSSLHostInfo()
91 if (entry_) in ~DiskCacheBasedSSLHostInfo()
92 entry_->Close(); in ~DiskCacheBasedSSLHostInfo()
159 entry_ = callback_->entry(); in DoOpenComplete()
185 entry_ = callback_->entry(); in DoCreateComplete()
202 const int32 size = entry_->GetDataSize(0 /* index */); in DoRead()
210 return entry_->ReadData(0 /* index */, 0 /* offset */, read_buffer_, in DoRead()
219 return entry_->WriteData(0 /* index */, 0 /* offset */, write_buffer_, in DoWrite()
224 DCHECK(entry_ == NULL); in DoCreate()
[all …]
Dhttp_cache_transaction.cc106 entry_(NULL), in Transaction()
142 if (entry_) { in ~Transaction()
146 entry_->disk_entry->CancelSparseIO(); in ~Transaction()
152 cache_->DoneWithEntry(entry_, this, cancel_request); in ~Transaction()
173 if (!cache_ || !entry_) in WriteMetadata()
180 return entry_->disk_entry->WriteData(kMetadataIndex, 0, buf, buf_len, in WriteMetadata()
204 if (entry_ || !request_) in GetWriterLoadState()
223 DCHECK(!entry_); in Start()
887 entry_ = new_entry_; in DoAddToEntryComplete()
959 return partial_->ShouldValidateCache(entry_->disk_entry, &io_callback_); in DoStartPartialCacheValidation()
[all …]
/external/chromium_org/net/disk_cache/
Dentry_impl.cc39 : entry_(entry), callback_(callback), buf_(buffer), in SyncCallback()
50 disk_cache::EntryImpl* entry_; member in __anon0b9fa58f0111::SyncCallback
60 entry_->DecrementIoCount(); in OnFileIOComplete()
62 if (entry_->net_log().IsLoggingAllEvents()) { in OnFileIOComplete()
63 entry_->net_log().EndEvent( in OnFileIOComplete()
67 entry_->ReportIOTime(disk_cache::EntryImpl::kAsyncIO, start_); in OnFileIOComplete()
71 entry_->Release(); in OnFileIOComplete()
296 : entry_(NULL, Addr(0)), node_(NULL, Addr(0)), in EntryImpl()
299 entry_.LazyInit(backend->File(address), address); in EntryImpl()
400 return entry_.Data()->hash; in GetHash()
[all …]
Dsparse_control.cc188 : entry_(entry), in SparseControl()
217 if (entry_->GetDataSize(kSparseData)) in Init()
222 int data_len = entry_->GetDataSize(kSparseIndex); in Init()
237 if (entry_->GetDataSize(kSparseData)) in CouldBeSparse()
241 return (entry_->GetDataSize(kSparseIndex) != 0); in CouldBeSparse()
276 if (entry_->net_log().IsLoggingAllEvents()) { in StartIO()
277 entry_->net_log().BeginEvent( in StartIO()
328 entry_->AddRef(); // Balanced in DoAbortCallbacks. in ReadyToUse()
373 if (CHILD_ENTRY & entry_->GetEntryFlags()) in CreateSparseEntry()
379 sparse_header_.parent_key_len = entry_->GetKey().size(); in CreateSparseEntry()
[all …]
Dtracing_cache_backend.cc55 Entry* entry_; member in disk_cache::EntryProxy
62 : entry_(entry), in EntryProxy()
68 entry_->Doom(); in Doom()
73 entry_->Close(); in Close()
78 return entry_->GetKey(); in GetKey()
82 return entry_->GetLastUsed(); in GetLastUsed()
86 return entry_->GetLastModified(); in GetLastModified()
90 return entry_->GetDataSize(index); in GetDataSize()
101 int rv = entry_->ReadData( in ReadData()
120 int rv = entry_->WriteData(index, offset, buf, buf_len, in WriteData()
[all …]
/external/chromium_org/chrome/common/extensions/permissions/
Dsocket_permission_data.cc88 return entry_ < rhs.entry_; in operator <()
92 return entry_ == rhs.entry_; in operator ==()
103 return entry_.Check(request); in Check()
121 return entry_; in entry()
138 return SocketPermissionEntry::ParseHostPattern(type, tokens, &entry_); in Parse()
146 spec_.append(TypeToString(entry_.pattern().type)); in GetAsString()
147 std::string pattern = entry_.GetHostPatternAsString(); in GetAsString()
155 entry_ = SocketPermissionEntry(); in Reset()
/external/chromium_org/net/tools/dump_cache/
Dupgrade_win.cc133 disk_cache::EntryImpl* entry_; member in __anon9ad2a54c0111::BaseSM
147 : entry_(NULL), channel_(channel), state_(0), pending_count_(0), in BaseSM()
164 if (entry_) in ~BaseSM()
165 entry_->Close(); in ~BaseSM()
394 key, reinterpret_cast<disk_cache::Entry**>(&entry_), in DoGetKey()
464 writer_->CloseEntry(entry_, last_used_, last_modified_); in CloseEntry()
465 entry_ = NULL; in CloseEntry()
500 printf("Read failed, entry \"%s\" truncated!\n", entry_->GetKey().c_str()); in DoReadData()
508 entry_, stream_, offset_, buf, read_size, in DoReadData()
691 msg.long_arg1 = reinterpret_cast<int64>(entry_); in DoGetNextEntry()
[all …]
Dcache_dumper.cc73 : path_(path), entry_(NULL) { in DiskDumper()
105 entry_ = CreateFileW(file.c_str(), GENERIC_WRITE|GENERIC_READ, 0, 0, in CreateEntry()
107 if (entry_ == INVALID_HANDLE_VALUE) in CreateEntry()
109 return (entry_ != INVALID_HANDLE_VALUE) ? net::OK : net::ERR_FAILED; in CreateEntry()
111 entry_ = base::OpenFile(entry_path_, "w+"); in CreateEntry()
112 return (entry_ != NULL) ? net::OK : net::ERR_FAILED; in CreateEntry()
159 if (!entry_) in WriteEntry()
207 if (!WriteFile(entry_, data, len, &bytes, 0)) in WriteEntry()
212 return fwrite(data, 1, len, entry_); in WriteEntry()
219 CloseHandle(entry_); in CloseEntry()
[all …]
/external/chromium/net/tools/dump_cache/
Dupgrade.cc129 disk_cache::EntryImpl* entry_; member in __anon65ac27f80111::BaseSM
143 : entry_(NULL), channel_(channel), state_(0), pending_count_(0), in BaseSM()
160 if (entry_) in ~BaseSM()
161 entry_->Close(); in ~BaseSM()
400 reinterpret_cast<disk_cache::Entry**>(&entry_), in DoGetKey()
470 writer_->CloseEntry(entry_, last_used_, last_modified_); in CloseEntry()
471 entry_ = NULL; in CloseEntry()
506 printf("Read failed, entry \"%s\" truncated!\n", entry_->GetKey().c_str()); in DoReadData()
513 int rv = writer_->WriteEntry(entry_, stream_, offset_, buf, read_size, in DoReadData()
699 msg.long_arg1 = reinterpret_cast<int64>(entry_); in DoGetNextEntry()
[all …]
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/photo/
Dgallery_item.js14 this.entry_ = entry;
21 Gallery.Item.prototype.getEntry = function() { return this.entry_ };
27 return this.entry_.name;
132 this.entry_ = entry;
189 this.entry_.getParent(saveToDir, onError);
201 var fileName = this.entry_.name.replace(
202 ImageUtil.getDisplayNameFromName(this.entry_.name), displayName);
204 if (name === this.entry_.name)
208 this.entry_ = entry;
222 this.entry_.moveTo(parentDir, fileName, onRenamed, onError);
[all …]
/external/chromium_org/net/http/
Dhttp_cache_transaction.cc193 entry_(NULL), in Transaction()
231 if (entry_) { in ~Transaction()
235 entry_->disk_entry->CancelSparseIO(); in ~Transaction()
241 cache_->DoneWithEntry(entry_, this, cancel_request); in ~Transaction()
253 if (!cache_.get() || !entry_) in WriteMetadata()
260 return entry_->disk_entry->WriteData(kMetadataIndex, 0, buf, buf_len, in WriteMetadata()
288 if (entry_ || !request_) in GetWriterLoadState()
307 DCHECK(!entry_); in Start()
453 if (cache_.get() && entry_ && (mode_ & WRITE) && network_trans_.get() && in StopCaching()
469 if (cache_.get() && entry_) { in DoneReading()
[all …]
/external/chromium_org/sync/syncable/
Dscoped_parent_child_index_updater.cc15 ParentChildIndex* index) : entry_(entry), index_(index) { in ScopedParentChildIndexUpdater()
16 if (ParentChildIndex::ShouldInclude(entry_)) { in ScopedParentChildIndexUpdater()
17 index_->Remove(entry_); in ScopedParentChildIndexUpdater()
22 if (ParentChildIndex::ShouldInclude(entry_)) { in ~ScopedParentChildIndexUpdater()
23 index_->Insert(entry_); in ~ScopedParentChildIndexUpdater()
/external/chromium_org/webkit/browser/appcache/
Dappcache_response.cc83 entry_(NULL), in AppCacheResponseIO()
89 if (entry_) in ~AppCacheResponseIO()
90 entry_->Close(); in ~AppCacheResponseIO()
111 DCHECK(entry_); in ReadRaw()
112 int rv = entry_->Read( in ReadRaw()
122 DCHECK(entry_); in WriteRaw()
123 int rv = entry_->Write( in WriteRaw()
166 if (!entry_) { in ContinueReadInfo()
171 int size = entry_->GetSize(kResponseInfoIndex); in ContinueReadInfo()
197 if (!entry_) { in ContinueReadData()
[all …]
/external/chromium_org/components/dom_distiller/core/
Dtask_tracker.cc22 entry_(entry), in TaskTracker()
32 if (entry_.pages_size() == 0) { in StartDistiller()
36 GURL url(entry_.pages(0).url()); in StartDistiller()
81 return entry_.entry_id() == entry_id; in HasEntryId()
85 for (int i = 0; i < entry_.pages_size(); ++i) { in HasUrl()
86 if (entry_.pages(i).url() == url.spec()) { in HasUrl()
116 save_callback_.Run(entry_, distilled_page_.get()); in DoSaveCallback()
130 entry_.set_title(distilled_page_->title()); in OnDistilledDataReady()

123456