ARC MIDI uses this to connect to the midis daemon running in Chrome OS. It takes a Mojo connection request over the ArcBridge, and then uses D-Bus (for sending across a message handle) to initiate a Mojo connection with that daemon. The daemon then returns a 2nd Mojo interface (with the actual Midis client calls) back to the proxy, which in turn sends it to the Android side. At present, the Connect() call which should return the 2nd Mojo interface handle has not yet been implemented.
It retains the initial Mojo connection with the daemon is maintained, for future ARC sessions, and tears down when the daemon dies.
This implementation is a based on the similar implementation used by ArcOemCrypto.
Change-Id: Icc8c937f743ddcc3deca85446c303408b17ec759 Reviewed-on: https://chromium-review.googlesource.com/638913 Commit-Queue: Prashant Malani
1c19443 MIDI ArcBridge proxy mojo interface.
.../browser/chromeos/arc/arc_service_launcher.cc | 2 +
components/arc/BUILD.gn | 3 +
components/arc/arc_bridge_host_impl.cc | 5 +
components/arc/arc_bridge_host_impl.h | 1 +
components/arc/arc_bridge_service.h | 3 +
components/arc/common/arc_bridge.mojom | 8 +-
components/arc/common/midis.mojom | 28 +++++
components/arc/midis/arc_midis_bridge.cc | 116 +++++++++++++++++++++
components/arc/midis/arc_midis_bridge.h | 59 +++++++++++
9 files changed, 223 insertions(+), 2 deletions(-)