void IDBServer::createObjectStore(const IDBRequestData& requestData, const IDBObjectStoreInfo& info) { LOG(IndexedDB, "IDBServer::createObjectStore"); auto transaction = m_transactions.get(requestData.transactionIdentifier()); if (!transaction) return; ASSERT(transaction->isVersionChange()); transaction->createObjectStore(requestData, info); }
RefPtr<IDBObjectStore> LegacyDatabase::createObjectStore(const String& name, const Dictionary& options, ExceptionCode& ec) { IDBKeyPath keyPath; bool autoIncrement = false; if (!options.isUndefinedOrNull()) { String keyPathString; Vector<String> keyPathArray; if (options.get("keyPath", keyPathArray)) keyPath = IDBKeyPath(keyPathArray); else if (options.getWithUndefinedOrNullCheck("keyPath", keyPathString)) keyPath = IDBKeyPath(keyPathString); options.get("autoIncrement", autoIncrement); } return createObjectStore(name, keyPath, autoIncrement, ec); }