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

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: 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') | device/bluetooth/bluetooth_profile.h » ('J')
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 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(
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_chromeos.h » ('j') | device/bluetooth/bluetooth_profile.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698