Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 13862023: Add abstract BluetoothProfile class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add constructor and destructor for Options Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698