IDB: Make opening/establishing a database asynchronous Currently opening a database involves main thread I/O. Let's make it asynchronous instead. The LevelDB implementation will still be main thread synchronous.
Created attachment 215987 [details] Patch v1
Attachment 215987 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreInterface.h', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h']" exit_code: 1 Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:183: The parameter name "metadata" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to comment #2) > Attachment 215987 [details] did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/Modules/indexeddb/IDBBackingStoreInterface.h', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h']" exit_code: 1 > Source/WebCore/Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:183: The parameter name "metadata" adds no information, so it should be removed. [readability/parameter_name] [5] > Total errors found: 1 in 6 files > > > If any of these errors are false positives, please file a bug against check-webkit-style. Fixed locally.
Comment on attachment 215987 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=215987&action=review r=me > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:450 > + RefPtr<IDBDatabaseError> error; This looks unused.
(In reply to comment #4) > (From update of attachment 215987 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=215987&action=review > > r=me > > > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:450 > > + RefPtr<IDBDatabaseError> error; > > This looks unused. INDEED!
http://trac.webkit.org/changeset/158641
And that additional review feedback in http://trac.webkit.org/changeset/158642