[Bluetooth] Add mojom::Socket and associated mojom::Adapter method.
Implement mojom::Socket, a Mojo interface for interacting with device::BluetoothSocket. This implementation mirrors the implementation of tcp_socket.mojom: it uses a pair of Mojo DataPipes to stream sent and received data, instead of mirroring device::BluetoothSocket's Send() and Receive() methods. This CL only adds mojom::Adapter::ConnectToServiceInsecurely(), to allow clients to initiate a connection. A subsequent CL will add mojom::Adapter::CreateRfcommService() to allow listening for an incoming connection. This implementation has been manually verified by running a Nearby Share (go/nearby-chrome-bt) prototype on a Pixelbook, communicating with a Pixel 3. Please see design doc go/nearby-chrome-bt for more details. Bug: 1043300 Change-Id: Ice8110ef9bce905ab46cc38fee3110f8d0775644 Fixed: b:157750558, b:157484150 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2292871 Commit-Queue: Ryan Hansberry <hansberry@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
James Vecore <vecore@google.com> Reviewed-by:
Alex Chau <alexchau@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#795318}
Showing
device/bluetooth/socket.cc
0 → 100644
device/bluetooth/socket.h
0 → 100644
Please register or sign in to comment