void UniqueIDBDatabase::didPerformDeleteRecord(uint64_t callbackIdentifier, const IDBError& error) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformDeleteRecord"); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformClearObjectStore(uint64_t callbackIdentifier, const IDBError& error) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformClearObjectStore"); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformCommitTransaction(uint64_t callbackIdentifier, const IDBError& error) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformCommitTransaction"); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformActivateTransactionInBackingStore(uint64_t callbackIdentifier, const IDBError& error) { LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformActivateTransactionInBackingStore"); invokeTransactionScheduler(); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformCommitTransaction(uint64_t callbackIdentifier, const IDBError& error, const IDBResourceIdentifier& transactionIdentifier) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformCommitTransaction"); inProgressTransactionCompleted(transactionIdentifier); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformDeleteObjectStore(uint64_t callbackIdentifier, const IDBError& error, const String& objectStoreName) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformDeleteObjectStore"); if (error.isNull()) m_databaseInfo->deleteObjectStore(objectStoreName); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformCreateObjectStore(uint64_t callbackIdentifier, const IDBError& error, const IDBObjectStoreInfo& info) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformCreateObjectStore"); if (error.isNull()) m_databaseInfo->addExistingObjectStore(info); performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformCreateIndex(uint64_t callbackIdentifier, const IDBError& error, const IDBIndexInfo& info) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformCreateIndex"); if (error.isNull()) { ASSERT(m_databaseInfo); auto* objectStoreInfo = m_databaseInfo->infoForExistingObjectStore(info.objectStoreIdentifier()); ASSERT(objectStoreInfo); objectStoreInfo->addExistingIndex(info); } performErrorCallback(callbackIdentifier, error); }
void UniqueIDBDatabase::didPerformAbortTransaction(uint64_t callbackIdentifier, const IDBError& error, const IDBResourceIdentifier& transactionIdentifier) { ASSERT(isMainThread()); LOG(IndexedDB, "(main) UniqueIDBDatabase::didPerformAbortTransaction"); if (m_versionChangeTransaction && m_versionChangeTransaction->info().identifier() == transactionIdentifier) { ASSERT(&m_versionChangeTransaction->databaseConnection() == m_versionChangeDatabaseConnection); ASSERT(m_versionChangeTransaction->originalDatabaseInfo()); m_databaseInfo = std::make_unique<IDBDatabaseInfo>(*m_versionChangeTransaction->originalDatabaseInfo()); m_versionChangeTransaction = nullptr; m_versionChangeDatabaseConnection = nullptr; } inProgressTransactionCompleted(transactionIdentifier); performErrorCallback(callbackIdentifier, error); }