More refactoring to make the LevelDB dependencies of IDB more obvious.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Sep 2013 18:02:58 +0000 (18:02 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Sep 2013 18:02:58 +0000 (18:02 +0000)
commit0703caad6a47d4a2fac030c76c38f255ea4662a4
tree2d0a0fc9cd4e8a12d53f244f76b00517e0f2e458
parent42cc83666e5efe83ba83b9a214a645ed5e9263d3
More refactoring to make the LevelDB dependencies of IDB more obvious.
https://bugs.webkit.org/show_bug.cgi?id=121880

Reviewed by Alexey Proskuryakov.

This patch does three things:
1 - Moves some files to the indexeddb/leveldb subdirectory, renaming them in the process.
2 - Renames some classes.
3 - Adds "USE(LEVELDB)" guards in addition to the ENABLE(INDEXED_DATABASE) guard for those files.

Project file updates:
* GNUmakefile.am:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.xcodeproj/project.pbxproj:
* WebCore.vcxproj/WebCore.vcxproj:

File renames, class renames, and USE(LEVELDB) guards:
* Modules/indexeddb/IDBBackingStore.cpp: Removed.
* Modules/indexeddb/IDBFactoryBackendInterface.cpp:
(WebCore::IDBFactoryBackendInterface::create): Add a null return if USE(LEVELDB) is disabled as a stop gap measure until
  there is a non-LevelDB impl.
* Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
* Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBBackingStore.h.
* Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBCursorBackendImpl.cpp.
* Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBCursorBackendImpl.h.
* Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp.
* Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h.
* Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.cpp.
* Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.h.
* Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp:
* Modules/indexeddb/leveldb/IDBLevelDBCoding.h:
* Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBObjectStoreBackendImpl.cpp.
* Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBObjectStoreBackendImpl.h.
* Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp.
* Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.h.
* Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBTransactionCoordinator.cpp.
* Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.h: Renamed from Source/WebCore/Modules/indexeddb/IDBTransactionCoordinator.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.am
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Modules/indexeddb/IDBBackingStore.cpp [deleted file]
Source/WebCore/Modules/indexeddb/IDBFactoryBackendInterface.cpp
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp
Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBBackingStore.h with 98% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp [moved from Source/WebCore/Modules/indexeddb/IDBCursorBackendImpl.cpp with 65% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBCursorBackendImpl.h with 66% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp [moved from Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp with 73% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h with 81% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp [moved from Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.cpp with 78% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.h with 82% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp
Source/WebCore/Modules/indexeddb/leveldb/IDBLevelDBCoding.h
Source/WebCore/Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp [moved from Source/WebCore/Modules/indexeddb/IDBObjectStoreBackendImpl.cpp with 72% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBObjectStoreBackendImpl.h with 74% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp [moved from Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp with 78% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.h with 80% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.cpp [moved from Source/WebCore/Modules/indexeddb/IDBTransactionCoordinator.cpp with 72% similarity]
Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.h [moved from Source/WebCore/Modules/indexeddb/IDBTransactionCoordinator.h with 67% similarity]
Source/WebCore/Target.pri
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj