/external/chromium_org/components/dom_distiller/core/ |
D | dom_distiller_model.cc | 29 bool DomDistillerModel::GetEntryById(const std::string& entry_id, in GetEntryById() argument 32 if (!GetKeyById(entry_id, &key)) { in GetEntryById() 49 bool DomDistillerModel::GetKeyById(const std::string& entry_id, in GetKeyById() argument 51 StringToKeyMap::const_iterator it = entry_id_to_key_map_.find(entry_id); in GetKeyById() 109 std::string entry_id = GetEntryIdFromSyncData(*it); in CalculateChangesForMerge() local 111 entries_to_change.insert(entry_id); in CalculateChangesForMerge() 116 if (GetEntryById(entry_id, NULL)) { in CalculateChangesForMerge() 124 if (entries_to_change.find(it->second.entry_id()) == in CalculateChangesForMerge() 146 const std::string& entry_id = entry.entry_id(); in AddEntry() local 148 DCHECK(!GetKeyById(entry_id, NULL)); in AddEntry() [all …]
|
D | dom_distiller_service_unittest.cc | 122 std::string entry_id("id0"); in TEST_F() local 124 entry.set_entry_id(entry_id); in TEST_F() 132 entry_id); in TEST_F() 252 std::string entry_id = in TEST_F() local 265 EXPECT_EQ(entry.entry_id(), entry_id); in TEST_F() 267 service_->RemoveEntry(entry_id); in TEST_F() 284 std::string entry_id = in TEST_F() local 290 service_->RemoveEntry(entry_id); in TEST_F() 307 std::string entry_id = service_->AddToList( in TEST_F() local 314 update.entry_id = entry_id; in TEST_F() [all …]
|
D | dom_distiller_service.cc | 89 return entry.entry_id(); in AddToList() 111 bool DomDistillerService::HasEntry(const std::string& entry_id) { in HasEntry() argument 112 return store_->GetEntryById(entry_id, NULL); in HasEntry() 115 std::string DomDistillerService::GetUrlForEntry(const std::string& entry_id) { in GetUrlForEntry() argument 117 if (store_->GetEntryById(entry_id, &entry)) { in GetUrlForEntry() 128 const std::string& entry_id) { in RemoveEntry() argument 130 entry->set_entry_id(entry_id); in RemoveEntry() 136 if (!store_->GetEntryById(entry_id, entry.get())) { in RemoveEntry() 149 const std::string& entry_id) { in ViewEntry() argument 151 if (!store_->GetEntryById(entry_id, &entry)) { in ViewEntry() [all …]
|
D | dom_distiller_service.h | 59 virtual bool HasEntry(const std::string& entry_id) = 0; 64 virtual std::string GetUrlForEntry(const std::string& entry_id) = 0; 70 virtual scoped_ptr<ArticleEntry> RemoveEntry(const std::string& entry_id) = 0; 83 const std::string& entry_id) = 0; 129 virtual bool HasEntry(const std::string& entry_id) OVERRIDE; 130 virtual std::string GetUrlForEntry(const std::string& entry_id) OVERRIDE; 133 const std::string& entry_id) OVERRIDE; 137 const std::string& entry_id) OVERRIDE;
|
D | dom_distiller_store.cc | 56 bool DomDistillerStore::GetEntryById(const std::string& entry_id, in GetEntryById() argument 58 return model_.GetEntryById(entry_id, entry); in GetEntryById() 70 if (model_.GetEntryById(entry.entry_id(), NULL)) { in AddEntry() 71 DVLOG(1) << "Already have entry with id " << entry.entry_id() << "."; in AddEntry() 98 if (!model_.GetEntryById(entry.entry_id(), NULL)) { in UpdateEntry() 99 DVLOG(1) << "No entry with id " << entry.entry_id() << " found."; in UpdateEntry() 113 DVLOG(1) << "Failed to update entry with id " << entry.entry_id() << "."; in UpdateEntry() 128 if (!model_.GetEntryById(entry.entry_id(), NULL)) { in RemoveEntry() 129 DVLOG(1) << "No entry with id " << entry.entry_id() << " found."; in RemoveEntry() 228 article_update.entry_id = entry.entry_id(); in NotifyObservers() [all …]
|
D | dom_distiller_test_util.cc | 45 if (expected->entry_id != actual->entry_id) { in MatchAndExplain() 46 *listener << " Mismatched entry id. Expected: " << expected->entry_id in MatchAndExplain() 47 << " actual: " << actual->entry_id; in MatchAndExplain() 51 *listener << " Mismatched update for entryid:" << expected->entry_id in MatchAndExplain() 70 *os << "( EntryId: " << i->entry_id << ", UpdateType: " << i->update_type in DescribeUpdates()
|
D | article_entry.cc | 60 return specifics.entry_id(); in GetEntryIdFromSyncData() 65 const std::string& entry_id = entry.entry_id(); in CreateLocalData() local 66 return syncer::SyncData::CreateLocalData(entry_id, entry_id, specifics); in CreateLocalData()
|
D | dom_distiller_service_android.cc | 36 const std::string entry_id = in HasEntry() local 38 return service_->HasEntry(entry_id); in HasEntry() 45 const std::string entry_id = in GetUrlForEntry() local 47 return ConvertUTF8ToJavaString(env, service_->GetUrlForEntry(entry_id)); in GetUrlForEntry()
|
D | dom_distiller_store_unittest.cc | 46 (*map)[e.entry_id()] = e; in AddEntry() 82 ArticleEntry CreateEntry(std::string entry_id, std::string page_url1, in CreateEntry() argument 85 entry.set_entry_id(entry_id); in CreateEntry() 196 EntryMap::iterator expected_it = expected_entries.find(it->entry_id()); in AreEntriesEqual() 199 << it->entry_id() << ">"; in AreEntriesEqual() 203 << it->entry_id() << ">"; in AreEntriesEqual() 457 update.entry_id = GetSampleEntry(0).entry_id(); in TEST_F() 465 update.entry_id = GetSampleEntry(1).entry_id(); in TEST_F() 473 update.entry_id = GetSampleEntry(0).entry_id(); in TEST_F() 488 update.entry_id = GetSampleEntry(3).entry_id(); in TEST_F() [all …]
|
D | dom_distiller_model_unittest.cc | 26 EXPECT_TRUE(model.GetEntryById(entry1.entry_id(), &found_entry)); in TEST() 30 EXPECT_TRUE(model.GetEntryById(entry2.entry_id(), &found_entry)); in TEST() 104 EXPECT_TRUE(model.GetEntryById(entry1.entry_id(), &found_entry)); in TEST() 108 EXPECT_TRUE(model.GetEntryById(entry2.entry_id(), &found_entry)); in TEST() 122 EXPECT_TRUE(model.GetEntryById(entry1.entry_id(), &found_entry)); in TEST() 126 EXPECT_TRUE(model.GetEntryById(entry2.entry_id(), &found_entry)); in TEST()
|
D | viewer.cc | 221 std::string entry_id = in CreateViewRequest() local 223 bool has_valid_entry_id = !entry_id.empty(); in CreateViewRequest() 224 entry_id = StringToUpperASCII(entry_id); in CreateViewRequest() 241 entry_id).Pass(); in CreateViewRequest()
|
D | distilled_content_store.cc | 38 ContentMap::const_iterator it = cache_.Get(entry.entry_id()); in LoadContent() 66 cache_.Put(entry.entry_id(), proto); in InjectContent() 76 url_to_id_[page.url()] = entry.entry_id(); in AddUrlToIdMapping()
|
D | dom_distiller_service_android.h | 28 bool HasEntry(JNIEnv* env, jobject obj, jstring entry_id); 31 jstring entry_id);
|
D | task_tracker.cc | 95 const std::string& TaskTracker::GetEntryId() const { return entry_.entry_id(); } in GetEntryId() 97 bool TaskTracker::HasEntryId(const std::string& entry_id) const { in HasEntryId() 98 return entry_.entry_id() == entry_id; in HasEntryId()
|
D | url_utils.cc | 27 const std::string& entry_id) { in GetDistillerViewUrlFromEntryId() argument 29 return net::AppendOrReplaceQueryParameter(url, kEntryIdKey, entry_id); in GetDistillerViewUrlFromEntryId()
|
D | dom_distiller_model.h | 34 bool GetEntryById(const std::string& entry_id, ArticleEntry* entry) const; 69 bool GetKeyById(const std::string& entry_id, KeyType* key) const;
|
/external/chromium_org/chrome/browser/dom_distiller/ |
D | lazy_dom_distiller_service.cc | 48 bool LazyDomDistillerService::HasEntry(const std::string& entry_id) { in HasEntry() argument 49 return instance()->HasEntry(entry_id); in HasEntry() 53 const std::string& entry_id) { in GetUrlForEntry() argument 54 return instance()->GetUrlForEntry(entry_id); in GetUrlForEntry() 69 const std::string& entry_id) { in RemoveEntry() argument 70 return instance()->RemoveEntry(entry_id); in RemoveEntry() 76 const std::string& entry_id) { in ViewEntry() argument 77 return instance()->ViewEntry(delegate, distiller_page.Pass(), entry_id); in ViewEntry()
|
D | lazy_dom_distiller_service.h | 41 virtual bool HasEntry(const std::string& entry_id) OVERRIDE; 42 virtual std::string GetUrlForEntry(const std::string& entry_id) OVERRIDE; 45 const std::string& entry_id) OVERRIDE; 49 const std::string& entry_id) OVERRIDE;
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | tkt-80ba201079.test | 96 entry_id int 102 entry_id 104 WHERE (entry_types.name = 'cli_command' AND entry_id=2114) 106 AND entry_id IN (SELECT change_id 113 CREATE INDEX timeline_entry_id_idx on timeline(entry_id); 116 entry_id 118 WHERE (entry_types.name = 'cli_command' AND entry_id=2114) 120 AND entry_id IN (SELECT change_id 131 entry_id 133 WHERE (entry_types.name = 'cli_command' AND entry_id=2114) [all …]
|
/external/chromium_org/components/dom_distiller/webui/ |
D | dom_distiller_handler.cc | 91 std::string entry_id; in HandleSelectArticle() local 92 args->GetString(0, &entry_id); in HandleSelectArticle() 94 url_utils::GetDistillerViewUrlFromEntryId(article_scheme_, entry_id); in HandleSelectArticle() 112 entry->SetString("entry_id", article.entry_id()); in HandleRequestEntries() 114 ? article.entry_id() in HandleRequestEntries()
|
/external/chromium_org/chrome/browser/media_galleries/linux/ |
D | mtp_device_object_enumerator.cc | 48 bool MTPDeviceObjectEnumerator::GetEntryId(uint32* entry_id) const { in GetEntryId() 49 DCHECK(entry_id); in GetEntryId() 53 *entry_id = file_entries_[index_].item_id(); in GetEntryId()
|
/external/chromium_org/chrome/browser/extensions/api/file_system/ |
D | file_system_api.cc | 854 std::string entry_id; in RunAsync() local 855 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &entry_id)); in RunAsync() 858 if (!saved_files_service->IsRegistered(extension_->id(), entry_id)) { in RunAsync() 878 entry_id)); in RunAsync() 882 saved_files_service->EnqueueFileEntry(extension_->id(), entry_id); in RunAsync() 888 const std::string& entry_id) { in RetainFileEntry() argument 891 extension_->id(), entry_id, path_, is_directory_); in RetainFileEntry() 892 saved_files_service->EnqueueFileEntry(extension_->id(), entry_id); in RetainFileEntry() 901 std::string entry_id; in RunSync() local 902 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &entry_id)); in RunSync() [all …]
|
/external/chromium_org/components/dom_distiller/webui/resources/ |
D | about_dom_distiller.js | 21 var entry_id = entries[i].entry_id; 22 link.setAttribute('id', 'entry-' + entry_id);
|
/external/chromium_org/sync/syncable/ |
D | syncable_util.cc | 29 bool IsLegalNewParent(BaseTransaction* trans, const Id& entry_id, in IsLegalNewParent() argument 31 if (entry_id.IsRoot()) in IsLegalNewParent() 36 if (entry_id == ancestor_id) in IsLegalNewParent()
|
/external/chromium_org/components/google/core/browser/ |
D | google_url_tracker_infobar_delegate.cc | 117 return (details.entry_id != contents_unique_id()) && in ShouldExpireInternal() 118 (details.entry_id != pending_id_); in ShouldExpireInternal()
|