Changeset 95373 in webkit
- Timestamp:
- Sep 16, 2011 11:52:28 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r95372 r95373 1468 1468 ENDIF () 1469 1469 1470 IF ( ENABLE_LEVELDB)1470 IF (WTF_USE_LEVELDB) 1471 1471 LIST(APPEND WebCore_SOURCES 1472 1472 platform/leveldb/LevelDBDatabase.cpp -
trunk/Source/WebCore/ChangeLog
r95372 r95373 1 2011-09-16 Adam Barth <abarth@webkit.org> 2 3 Rename ENABLE(LEVELDB) to USE(LEVELDB) 4 https://bugs.webkit.org/show_bug.cgi?id=68290 5 6 Reviewed by Darin Adler. 7 8 LEVELDB is a library that can be used to implemented INDEXED_DATABASE, 9 which means it should be a USE not an ENABLE. 10 11 * CMakeLists.txt: 12 * WebCore.gyp/WebCore.gyp: 13 * platform/leveldb/LevelDBComparator.h: 14 * platform/leveldb/LevelDBDatabase.cpp: 15 * platform/leveldb/LevelDBDatabase.h: 16 * platform/leveldb/LevelDBIterator.h: 17 * platform/leveldb/LevelDBSlice.h: 18 * platform/leveldb/LevelDBTransaction.cpp: 19 * platform/leveldb/LevelDBTransaction.h: 20 * platform/leveldb/LevelDBWriteBatch.cpp: 21 * platform/leveldb/LevelDBWriteBatch.h: 22 * storage/IDBFactoryBackendImpl.cpp: 23 (WebCore::IDBFactoryBackendImpl::open): 24 (WebCore::IDBFactoryBackendImpl::migrateFromSQLiteToLevelDB): 25 * storage/IDBLevelDBBackingStore.cpp: 26 * storage/IDBLevelDBBackingStore.h: 27 * storage/IDBLevelDBCoding.cpp: 28 * storage/IDBLevelDBCoding.h: 29 1 30 2011-09-16 Andreas Kling <kling@webkit.org> 2 31 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r95356 r95373 1267 1267 ], 1268 1268 }], 1269 ['" ENABLE_LEVELDB=1" in feature_defines', {1269 ['"WTF_USE_LEVELDB=1" in feature_defines', { 1270 1270 'dependencies': [ 1271 1271 '<(chromium_src_dir)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase', -
trunk/Source/WebCore/platform/leveldb/LevelDBComparator.h
r84149 r95373 27 27 #define LevelDBComparator_h 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include <wtf/text/WTFString.h> … … 45 45 } // namespace WebCore 46 46 47 #endif // ENABLE(LEVELDB) 47 #endif // USE(LEVELDB) 48 48 49 #endif // LevelDBComparator_h -
trunk/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
r91721 r95373 27 27 #include "LevelDBDatabase.h" 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include "LevelDBComparator.h" -
trunk/Source/WebCore/platform/leveldb/LevelDBDatabase.h
r87370 r95373 27 27 #define LevelDBDatabase_h 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include <wtf/OwnPtr.h> -
trunk/Source/WebCore/platform/leveldb/LevelDBIterator.h
r87370 r95373 27 27 #define LevelDBIterator_h 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include "LevelDBSlice.h" … … 47 47 } // namespace WebCore 48 48 49 #endif // ENABLE(LEVELDB) 49 #endif // USE(LEVELDB) 50 50 51 #endif // LevelDBIterator_h -
trunk/Source/WebCore/platform/leveldb/LevelDBSlice.h
r84149 r95373 27 27 #define LevelDBSlice_h 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include "PlatformString.h" … … 64 64 } // namespace WebCore 65 65 66 #endif // ENABLE(LEVELDB) 66 #endif // USE(LEVELDB) 67 67 68 #endif // LevelDBSlice_h -
trunk/Source/WebCore/platform/leveldb/LevelDBTransaction.cpp
r87911 r95373 32 32 33 33 #if ENABLE(INDEXED_DATABASE) 34 #if ENABLE(LEVELDB)34 #if USE(LEVELDB) 35 35 36 36 namespace WebCore { … … 477 477 } // namespace WebCore 478 478 479 #endif // ENABLE(LEVELDB)479 #endif // USE(LEVELDB) 480 480 #endif // ENABLE(INDEXED_DATABASE) -
trunk/Source/WebCore/platform/leveldb/LevelDBTransaction.h
r87508 r95373 28 28 29 29 #if ENABLE(INDEXED_DATABASE) 30 #if ENABLE(LEVELDB)30 #if USE(LEVELDB) 31 31 32 32 #include "LevelDBComparator.h" … … 170 170 } 171 171 172 #endif // ENABLE(LEVELDB)172 #endif // USE(LEVELDB) 173 173 #endif // ENABLE(INDEXED_DATABASE) 174 174 -
trunk/Source/WebCore/platform/leveldb/LevelDBWriteBatch.cpp
r87370 r95373 27 27 #include "LevelDBWriteBatch.h" 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include "LevelDBSlice.h" -
trunk/Source/WebCore/platform/leveldb/LevelDBWriteBatch.h
r87370 r95373 27 27 #define LevelDBWriteBatch_h 28 28 29 #if ENABLE(LEVELDB)29 #if USE(LEVELDB) 30 30 31 31 #include <wtf/OwnPtr.h> … … 60 60 } 61 61 62 #endif // ENABLE(LEVELDB) 62 #endif // USE(LEVELDB) 63 63 64 #endif // LevelDBWriteBatch_h -
trunk/Source/WebCore/storage/IDBFactoryBackendImpl.cpp
r90137 r95373 97 97 // FIXME: Everything from now on should be done on another thread. 98 98 99 #if ENABLE(LEVELDB)99 #if USE(LEVELDB) 100 100 if (backingStoreType == LevelDBBackingStore) { 101 101 bool hasSQLBackingStore = IDBSQLiteBackingStore::backingStoreExists(securityOrigin.get(), name, dataDir); … … 120 120 if (backingStoreType == SQLiteBackingStore) 121 121 backingStore = IDBSQLiteBackingStore::open(securityOrigin.get(), dataDir, maximumSize, fileIdentifier, this); 122 #if ENABLE(LEVELDB)122 #if USE(LEVELDB) 123 123 else if (backingStoreType == LevelDBBackingStore) 124 124 backingStore = IDBLevelDBBackingStore::open(securityOrigin.get(), dataDir, maximumSize, fileIdentifier, this); … … 135 135 } 136 136 137 #if ENABLE(LEVELDB)137 #if USE(LEVELDB) 138 138 139 139 static bool migrateObjectStores(PassRefPtr<IDBBackingStore> fromBackingStore, int64_t fromDatabaseId, PassRefPtr<IDBBackingStore> toBackingStore, int64_t toDatabaseId) … … 194 194 return true; 195 195 } 196 #endif // #if ENABLE(LEVELDB)196 #endif // #if USE(LEVELDB) 197 197 198 198 bool IDBFactoryBackendImpl::migrateFromSQLiteToLevelDB(const String& name, SecurityOrigin* securityOrigin, const String& dataDir, int64_t maximumSize) 199 199 { 200 #if ENABLE(LEVELDB)200 #if USE(LEVELDB) 201 201 String fromUniqueIdentifier = computeUniqueIdentifier(name, securityOrigin, SQLiteBackingStore); 202 202 String fromFileIdentifier = computeFileIdentifier(securityOrigin, SQLiteBackingStore); … … 254 254 return migrateObjectStores(fromBackingStore, fromDatabaseBackend->id(), toBackingStore, toDatabaseId); 255 255 256 #endif // ENABLE(LEVELDB)256 #endif // USE(LEVELDB) 257 257 return false; 258 258 } -
trunk/Source/WebCore/storage/IDBLevelDBBackingStore.cpp
r92950 r95373 28 28 29 29 #if ENABLE(INDEXED_DATABASE) 30 #if ENABLE(LEVELDB)30 #if USE(LEVELDB) 31 31 32 32 #include "Assertions.h" … … 1311 1311 } // namespace WebCore 1312 1312 1313 #endif // ENABLE(LEVELDB)1313 #endif // USE(LEVELDB) 1314 1314 #endif // ENABLE(INDEXED_DATABASE) -
trunk/Source/WebCore/storage/IDBLevelDBBackingStore.h
r92950 r95373 28 28 29 29 #if ENABLE(INDEXED_DATABASE) 30 #if ENABLE(LEVELDB)30 #if USE(LEVELDB) 31 31 32 32 #include "IDBBackingStore.h" … … 104 104 105 105 106 #endif // ENABLE(LEVELDB)106 #endif // USE(LEVELDB) 107 107 #endif // ENABLE(INDEXED_DATABASE) 108 108 -
trunk/Source/WebCore/storage/IDBLevelDBCoding.cpp
r94640 r95373 28 28 29 29 #if ENABLE(INDEXED_DATABASE) 30 #if ENABLE(LEVELDB)30 #if USE(LEVELDB) 31 31 32 32 #include "IDBKey.h" … … 1314 1314 } // namespace WebCore 1315 1315 1316 #endif // ENABLE(LEVELDB)1316 #endif // USE(LEVELDB) 1317 1317 #endif // ENABLE(INDEXED_DATABASE) -
trunk/Source/WebCore/storage/IDBLevelDBCoding.h
r88019 r95373 28 28 29 29 #if ENABLE(INDEXED_DATABASE) 30 #if ENABLE(LEVELDB)30 #if USE(LEVELDB) 31 31 32 32 #include <wtf/RefPtr.h> … … 278 278 } // namespace WebCore 279 279 280 #endif // ENABLE(LEVELDB)280 #endif // USE(LEVELDB) 281 281 #endif // ENABLE(INDEXED_DATABASE) 282 282 -
trunk/Source/WebKit/chromium/ChangeLog
r95369 r95373 1 2011-09-16 Adam Barth <abarth@webkit.org> 2 3 Rename ENABLE(LEVELDB) to USE(LEVELDB) 4 https://bugs.webkit.org/show_bug.cgi?id=68290 5 6 Reviewed by Darin Adler. 7 8 * features.gypi: 9 * tests/IDBLevelDBCodingTest.cpp: 10 1 11 2011-09-16 Jochen Eisinger <jochen@chromium.org> 2 12 -
trunk/Source/WebKit/chromium/features.gypi
r95272 r95373 58 58 'ENABLE_JAVASCRIPT_I18N_API=1', 59 59 'ENABLE_JSC_MULTIPLE_THREADS=0', 60 'ENABLE_LEVELDB=1',61 60 'ENABLE_LINK_PREFETCH=1', 62 61 'ENABLE_MEDIA_STATISTICS=1', … … 91 90 'ENABLE_XPATH=1', 92 91 'ENABLE_XSLT=1', 92 'WTF_USE_LEVELDB=1', 93 93 'WTF_USE_BUILTIN_UTF8_CODEC=1', 94 94 # WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi -
trunk/Source/WebKit/chromium/tests/IDBLevelDBCodingTest.cpp
r88019 r95373 28 28 29 29 #if ENABLE(INDEXED_DATABASE) 30 #if ENABLE(LEVELDB)30 #if USE(LEVELDB) 31 31 32 32 #include "IDBKey.h" … … 388 388 } // namespace 389 389 390 #endif // ENABLE(LEVELDB)390 #endif // USE(LEVELDB) 391 391 #endif // ENABLE(INDEXED_DATABASE)
Note: See TracChangeset
for help on using the changeset viewer.