void ContentSecurityPolicy::gatherReportURIs(DOMStringList& list) const { ASSERT(m_scriptExecutionContext); for (auto& policy : m_policies) { for (auto& url : policy->reportURIs()) list.append(m_scriptExecutionContext->completeURL(url).string()); } }
DOMStringList* IDBDatabase::objectStoreNames() const { DOMStringList* objectStoreNames = DOMStringList::create(DOMStringList::IndexedDB); for (const auto& it : m_metadata.objectStores) objectStoreNames->append(it.value->name); objectStoreNames->sort(); return objectStoreNames; }
DOMStringList* IDBObjectStore::indexNames() const { IDB_TRACE("IDBObjectStore::indexNames"); DOMStringList* indexNames = DOMStringList::create(DOMStringList::IndexedDB); for (const auto& it : m_metadata.indexes) indexNames->append(it.value.name); indexNames->sort(); return indexNames; }
DOMStringList* IDBTransaction::objectStoreNames() const { if (isVersionChange()) return m_database->objectStoreNames(); DOMStringList* objectStoreNames = DOMStringList::create(DOMStringList::IndexedDB); for (const String& objectStoreName : m_scope) objectStoreNames->append(objectStoreName); objectStoreNames->sort(); return objectStoreNames; }