Move LevelDB specific IDB files into their own subdirectory.
[WebKit-https.git] / Source / WebCore / ChangeLog
index 6fbb2df74f71d62ec8bddafa043449027e1187a2..d5da6ecce627a4cbd57447c81cc03e9ccf32e156 100644 (file)
@@ -1,3 +1,228 @@
+2013-09-23  Brady Eidson  <beidson@apple.com>
+
+        Move LevelDB specific IDB files into their own subdirectory.
+        https://bugs.webkit.org/show_bug.cgi?id=121804
+
+        Rubberstamped by Alexey Proskuryakov.
+
+        * CMakeLists.txt:
+        * GNUmakefile.list.am:
+        * WebCore.xcodeproj/project.pbxproj:
+
+        * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBBackingStore.cpp.
+        (WebCore::recordInternalError):
+        (WebCore::putBool):
+        (WebCore::getInt):
+        (WebCore::putInt):
+        (WebCore::getVarInt):
+        (WebCore::putVarInt):
+        (WebCore::getString):
+        (WebCore::putString):
+        (WebCore::putIDBKeyPath):
+        (WebCore::compareKeys):
+        (WebCore::compareIndexKeys):
+        (WebCore::Comparator::compare):
+        (WebCore::Comparator::name):
+        (WebCore::isSchemaKnown):
+        (WebCore::setUpMetadata):
+        (WebCore::getMaxObjectStoreId):
+        (WebCore::DefaultLevelDBFactory::openLevelDB):
+        (WebCore::DefaultLevelDBFactory::destroyLevelDB):
+        (WebCore::IDBBackingStore::IDBBackingStore):
+        (WebCore::IDBBackingStore::~IDBBackingStore):
+        (WebCore::IDBBackingStore::open):
+        (WebCore::IDBBackingStore::openInMemory):
+        (WebCore::IDBBackingStore::create):
+        (WebCore::IDBBackingStore::getDatabaseNames):
+        (WebCore::IDBBackingStore::getIDBDatabaseMetaData):
+        (WebCore::getNewDatabaseId):
+        (WebCore::IDBBackingStore::createIDBDatabaseMetaData):
+        (WebCore::IDBBackingStore::updateIDBDatabaseIntVersion):
+        (WebCore::IDBBackingStore::updateIDBDatabaseMetaData):
+        (WebCore::deleteRange):
+        (WebCore::IDBBackingStore::deleteDatabase):
+        (WebCore::checkObjectStoreAndMetaDataType):
+        (WebCore::IDBBackingStore::getObjectStores):
+        (WebCore::setMaxObjectStoreId):
+        (WebCore::IDBBackingStore::createObjectStore):
+        (WebCore::IDBBackingStore::deleteObjectStore):
+        (WebCore::IDBBackingStore::getRecord):
+        (WebCore::getNewVersionNumber):
+        (WebCore::IDBBackingStore::putRecord):
+        (WebCore::IDBBackingStore::clearObjectStore):
+        (WebCore::IDBBackingStore::deleteRecord):
+        (WebCore::IDBBackingStore::getKeyGeneratorCurrentNumber):
+        (WebCore::IDBBackingStore::maybeUpdateKeyGeneratorCurrentNumber):
+        (WebCore::IDBBackingStore::keyExistsInObjectStore):
+        (WebCore::checkIndexAndMetaDataKey):
+        (WebCore::IDBBackingStore::getIndexes):
+        (WebCore::setMaxIndexId):
+        (WebCore::IDBBackingStore::createIndex):
+        (WebCore::IDBBackingStore::deleteIndex):
+        (WebCore::IDBBackingStore::putIndexDataForRecord):
+        (WebCore::findGreatestKeyLessThanOrEqual):
+        (WebCore::versionExists):
+        (WebCore::IDBBackingStore::findKeyInIndex):
+        (WebCore::IDBBackingStore::getPrimaryKeyViaIndex):
+        (WebCore::IDBBackingStore::keyExistsInIndex):
+        (WebCore::IDBBackingStore::Cursor::Cursor):
+        (WebCore::IDBBackingStore::Cursor::firstSeek):
+        (WebCore::IDBBackingStore::Cursor::advance):
+        (WebCore::IDBBackingStore::Cursor::continueFunction):
+        (WebCore::IDBBackingStore::Cursor::haveEnteredRange):
+        (WebCore::IDBBackingStore::Cursor::isPastBounds):
+        (WebCore::ObjectStoreKeyCursorImpl::create):
+        (WebCore::ObjectStoreKeyCursorImpl::clone):
+        (WebCore::ObjectStoreKeyCursorImpl::value):
+        (WebCore::ObjectStoreKeyCursorImpl::encodeKey):
+        (WebCore::ObjectStoreKeyCursorImpl::ObjectStoreKeyCursorImpl):
+        (WebCore::ObjectStoreKeyCursorImpl::loadCurrentRow):
+        (WebCore::ObjectStoreCursorImpl::create):
+        (WebCore::ObjectStoreCursorImpl::clone):
+        (WebCore::ObjectStoreCursorImpl::value):
+        (WebCore::ObjectStoreCursorImpl::encodeKey):
+        (WebCore::ObjectStoreCursorImpl::ObjectStoreCursorImpl):
+        (WebCore::ObjectStoreCursorImpl::loadCurrentRow):
+        (WebCore::IndexKeyCursorImpl::create):
+        (WebCore::IndexKeyCursorImpl::clone):
+        (WebCore::IndexKeyCursorImpl::value):
+        (WebCore::IndexKeyCursorImpl::primaryKey):
+        (WebCore::IndexKeyCursorImpl::recordIdentifier):
+        (WebCore::IndexKeyCursorImpl::encodeKey):
+        (WebCore::IndexKeyCursorImpl::IndexKeyCursorImpl):
+        (WebCore::IndexKeyCursorImpl::loadCurrentRow):
+        (WebCore::IndexCursorImpl::create):
+        (WebCore::IndexCursorImpl::clone):
+        (WebCore::IndexCursorImpl::value):
+        (WebCore::IndexCursorImpl::primaryKey):
+        (WebCore::IndexCursorImpl::recordIdentifier):
+        (WebCore::IndexCursorImpl::encodeKey):
+        (WebCore::IndexCursorImpl::IndexCursorImpl):
+        (WebCore::IndexCursorImpl::loadCurrentRow):
+        (WebCore::objectStoreCursorOptions):
+        (WebCore::indexCursorOptions):
+        (WebCore::IDBBackingStore::openObjectStoreCursor):
+        (WebCore::IDBBackingStore::openObjectStoreKeyCursor):
+        (WebCore::IDBBackingStore::openIndexKeyCursor):
+        (WebCore::IDBBackingStore::openIndexCursor):
+        (WebCore::IDBBackingStore::Transaction::Transaction):
+        (WebCore::IDBBackingStore::Transaction::begin):
+        (WebCore::IDBBackingStore::Transaction::commit):
+        (WebCore::IDBBackingStore::Transaction::rollback):
+        * Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBLevelDBCoding.cpp.
+        (WebCore::IDBLevelDBCoding::encodeByte):
+        (WebCore::IDBLevelDBCoding::decodeByte):
+        (WebCore::IDBLevelDBCoding::maxIDBKey):
+        (WebCore::IDBLevelDBCoding::minIDBKey):
+        (WebCore::IDBLevelDBCoding::encodeBool):
+        (WebCore::IDBLevelDBCoding::decodeBool):
+        (WebCore::IDBLevelDBCoding::encodeInt):
+        (WebCore::IDBLevelDBCoding::decodeInt):
+        (WebCore::IDBLevelDBCoding::compareInts):
+        (WebCore::IDBLevelDBCoding::encodeVarInt):
+        (WebCore::IDBLevelDBCoding::decodeVarInt):
+        (WebCore::IDBLevelDBCoding::encodeString):
+        (WebCore::IDBLevelDBCoding::decodeString):
+        (WebCore::IDBLevelDBCoding::encodeStringWithLength):
+        (WebCore::IDBLevelDBCoding::decodeStringWithLength):
+        (WebCore::IDBLevelDBCoding::compareEncodedStringsWithLength):
+        (WebCore::IDBLevelDBCoding::encodeDouble):
+        (WebCore::IDBLevelDBCoding::decodeDouble):
+        (WebCore::IDBLevelDBCoding::encodeIDBKey):
+        (WebCore::IDBLevelDBCoding::decodeIDBKey):
+        (WebCore::IDBLevelDBCoding::extractEncodedIDBKey):
+        (WebCore::IDBLevelDBCoding::keyTypeByteToKeyType):
+        (WebCore::IDBLevelDBCoding::compareEncodedIDBKeys):
+        (WebCore::IDBLevelDBCoding::encodeIDBKeyPath):
+        (WebCore::IDBLevelDBCoding::decodeIDBKeyPath):
+        (WebCore::IDBLevelDBCoding::compare):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::KeyPrefix):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::createWithSpecialIndex):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::isValidDatabaseId):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::isValidObjectStoreId):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::isValidIndexId):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::decode):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::encodeEmpty):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::encode):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::encodeInternal):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::compare):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::type):
+        (WebCore::IDBLevelDBCoding::SchemaVersionKey::encode):
+        (WebCore::IDBLevelDBCoding::MaxDatabaseIdKey::encode):
+        (WebCore::IDBLevelDBCoding::DataVersionKey::encode):
+        (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::DatabaseFreeListKey):
+        (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::decode):
+        (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::encode):
+        (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::encodeMaxKey):
+        (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::databaseId):
+        (WebCore::IDBLevelDBCoding::DatabaseFreeListKey::compare):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::decode):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::encode):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::encodeMinKeyForOrigin):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::encodeStopKeyForOrigin):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::compare):
+        (WebCore::IDBLevelDBCoding::DatabaseMetaDataKey::encode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::ObjectStoreMetaDataKey):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::decode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::encode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::encodeMaxKey):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::objectStoreId):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::metaDataType):
+        (WebCore::IDBLevelDBCoding::ObjectStoreMetaDataKey::compare):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::IndexMetaDataKey):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::decode):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::encode):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::encodeMaxKey):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::compare):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::indexId):
+        (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::ObjectStoreFreeListKey):
+        (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::decode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::encode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::encodeMaxKey):
+        (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::objectStoreId):
+        (WebCore::IDBLevelDBCoding::ObjectStoreFreeListKey::compare):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::IndexFreeListKey):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::decode):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::encode):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::encodeMaxKey):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::compare):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::objectStoreId):
+        (WebCore::IDBLevelDBCoding::IndexFreeListKey::indexId):
+        (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::decode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::encode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::compare):
+        (WebCore::IDBLevelDBCoding::IndexNamesKey::IndexNamesKey):
+        (WebCore::IDBLevelDBCoding::IndexNamesKey::decode):
+        (WebCore::IDBLevelDBCoding::IndexNamesKey::encode):
+        (WebCore::IDBLevelDBCoding::IndexNamesKey::compare):
+        (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::decode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::encode):
+        (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::compare):
+        (WebCore::IDBLevelDBCoding::ObjectStoreDataKey::userKey):
+        (WebCore::IDBLevelDBCoding::ExistsEntryKey::decode):
+        (WebCore::IDBLevelDBCoding::ExistsEntryKey::encode):
+        (WebCore::IDBLevelDBCoding::ExistsEntryKey::compare):
+        (WebCore::IDBLevelDBCoding::ExistsEntryKey::userKey):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::IndexDataKey):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::decode):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::encode):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::encodeMinKey):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::encodeMaxKey):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::compare):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::databaseId):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::objectStoreId):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::indexId):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::userKey):
+        (WebCore::IDBLevelDBCoding::IndexDataKey::primaryKey):
+        * Modules/indexeddb/leveldb/IDBLevelDBCoding.h: Renamed from Source/WebCore/Modules/indexeddb/IDBLevelDBCoding.h.
+        (WebCore::IDBLevelDBCoding::encodeIntSafely):
+        (WebCore::IDBLevelDBCoding::KeyPrefix::validIds):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::origin):
+        (WebCore::IDBLevelDBCoding::DatabaseNameKey::databaseName):
+        (WebCore::IDBLevelDBCoding::IndexMetaDataKey::metaDataType):
+        (WebCore::IDBLevelDBCoding::ObjectStoreNamesKey::objectStoreName):
+        (WebCore::IDBLevelDBCoding::IndexNamesKey::indexName):
+
 2013-09-23  Antti Koivisto  <antti@apple.com>
 
         Try to fix GTK build.