void MemoryIDBBackingStore::unregisterObjectStore(MemoryObjectStore& objectStore) { ASSERT(m_objectStoresByIdentifier.contains(objectStore.info().identifier())); ASSERT(m_objectStoresByName.contains(objectStore.info().name())); m_objectStoresByName.remove(objectStore.info().name()); m_objectStoresByIdentifier.remove(objectStore.info().identifier()); }
void MemoryIDBBackingStore::removeObjectStoreForVersionChangeAbort(MemoryObjectStore& objectStore) { LOG(IndexedDB, "MemoryIDBBackingStore::removeObjectStoreForVersionChangeAbort"); ASSERT(m_objectStoresByIdentifier.contains(objectStore.info().identifier())); ASSERT(m_objectStoresByIdentifier.get(objectStore.info().identifier()) == &objectStore); unregisterObjectStore(objectStore); }