Reviewers: cmumford, Ken Rockot, dcheng
CL:
https://codereview.chromium.org/2370643004/Message:
This is a new version of
https://codereview.chromium.org/2320213004 which does
not attempt to do Onion Soup at the same time as Mojoification because the
thread hopping necessary to use channel-associated interfaces from workers is
not possible inside Blink.
Description:
Port messages sent by WebIDBFactoryImpl to Mojo.
This is the first of a series of patches that convert the IPC messages
sent by WebIDBFactoryImpl, WebIDBDatabaseImpl and WebIDBCursorImpl to
Mojo messages.
Once all of the IPC sent by IndexedDB and Blob storage are converted to
Mojo they can be moved off of channel-associated interfaces and more
agressive removal of unnecessary layers of abstraction (including
removal of all of the manual thread hopping I added) can be done.
BUG=627484
Affected files (+1304, -734 lines):
M content/browser/indexed_db/indexed_db_callbacks.h
M content/browser/indexed_db/indexed_db_callbacks.cc
M content/browser/indexed_db/indexed_db_database_callbacks.h
M content/browser/indexed_db/indexed_db_database_callbacks.cc
M content/browser/indexed_db/indexed_db_dispatcher_host.h
M content/browser/indexed_db/indexed_db_dispatcher_host.cc
M content/browser/indexed_db/indexed_db_factory_unittest.cc
M content/browser/indexed_db/mock_indexed_db_database_callbacks.cc
M content/child/BUILD.gn
A content/child/indexed_db/indexed_db_callbacks_impl.h
A content/child/indexed_db/indexed_db_callbacks_impl.cc
A content/child/indexed_db/indexed_db_database_callbacks_impl.h
A content/child/indexed_db/indexed_db_database_callbacks_impl.cc
M content/child/indexed_db/indexed_db_dispatcher.h
M content/child/indexed_db/indexed_db_dispatcher.cc
M content/child/indexed_db/indexed_db_message_filter.h
M content/child/indexed_db/indexed_db_message_filter.cc
M content/child/indexed_db/mock_webidbcallbacks.h
M content/child/indexed_db/webidbdatabase_impl.h
M content/child/indexed_db/webidbdatabase_impl.cc
M content/child/indexed_db/webidbfactory_impl.h
M content/child/indexed_db/webidbfactory_impl.cc
M content/common/BUILD.gn
M content/common/indexed_db/OWNERS
A content/common/indexed_db/indexed_db.mojom
A content/common/indexed_db/indexed_db.typemap
M content/common/indexed_db/indexed_db_messages.h
A + content/common/indexed_db/typemaps.gni
M content/renderer/renderer_blink_platform_impl.cc
M ipc/ipc_sync_message_filter.h
M ipc/ipc_sync_message_filter.cc
M mojo/public/cpp/bindings/associated_interface_ptr_info.h
M mojo/public/tools/bindings/chromium_bindings_configuration.gni
M third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.h
M third_party/WebKit/Source/modules/indexeddb/IDBDatabaseCallbacks.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBIndex.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h
M third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.h
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
M third_party/WebKit/Source/modules/indexeddb/WebIDBCallbacksImpl.h
M third_party/WebKit/Source/modules/indexeddb/WebIDBCallbacksImpl.cpp
M third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.h
M third_party/WebKit/Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.cpp
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h