Index: device/bluetooth/bluetooth_device.h |
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h |
index bb363f9083e1880234207a74c1ea0d4616c2c24e..9e1bb4e6f6a412f683258e6b38a512a2276194d4 100644 |
--- a/device/bluetooth/bluetooth_device.h |
+++ b/device/bluetooth/bluetooth_device.h |
@@ -14,6 +14,7 @@ |
namespace device { |
+class BluetoothProfile; |
class BluetoothServiceRecord; |
class BluetoothSocket; |
@@ -298,6 +299,12 @@ class BluetoothDevice { |
virtual void ConnectToService(const std::string& service_uuid, |
const SocketCallback& callback) = 0; |
+ // Attempts to initiate an outgoing connection to this device for the profile |
+ // identified by |profile|, on success the profile's connection callback |
+ // wil be called; on failure |error_callback| will be called. |
+ virtual void ConnectToProfile(BluetoothProfile* profile, |
+ const ErrorCallback& error_callback) = 0; |
+ |
// Sets the Out Of Band pairing data for this device to |data|. Exactly one |
// of |callback| or |error_callback| will be run. |
virtual void SetOutOfBandPairingData( |