Index: device/bluetooth/bluetooth_device.h |
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h |
index 26321bcdb538ad1ac693ad010a9041d47994bee0..30895a685f1fb00a2b515e91356668088e8f8e3c 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; |
@@ -302,6 +303,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( |