Index: device/bluetooth/bluetooth_device_chromeos.h |
diff --git a/device/bluetooth/bluetooth_device_chromeos.h b/device/bluetooth/bluetooth_device_chromeos.h |
index 6f335603cd630f73abc171d6a1a2b5c65e904d24..85ed0709a39d4c7a68fd1004e53e58cfb8527615 100644 |
--- a/device/bluetooth/bluetooth_device_chromeos.h |
+++ b/device/bluetooth/bluetooth_device_chromeos.h |
@@ -73,6 +73,19 @@ class BluetoothDeviceChromeOS |
const base::Closure& callback, |
const ErrorCallback& error_callback) OVERRIDE; |
+ // Attempts to initiate an insecure outgoing L2CAP or RFCOMM connection to the |
+ // advertised service on this device matching |uuid|, performing an SDP lookup |
+ // if necessary to determine the correct protocol and channel for the |
+ // connection. Unlike ConnectToService, the outgoing connection will request |
+ // no bonding rather than general bonding. |callback| will be called on a |
+ // successful connection with a BluetoothSocket instance that is to be owned |
+ // by the receiver. |error_callback| will be called on failure with a message |
+ // indicating the cause. |
+ void ConnectToServiceInsecurely( |
+ const device::BluetoothUUID& uuid, |
+ const ConnectToServiceCallback& callback, |
+ const ConnectToServiceErrorCallback& error_callback); |
+ |
// Creates a pairing object with the given delegate |pairing_delegate| and |
// establishes it as the pairing context for this device. All pairing-related |
// method calls will be forwarded to this object until it is released. |