Index: device/bluetooth/bluetooth_profile.h |
diff --git a/device/bluetooth/bluetooth_profile.h b/device/bluetooth/bluetooth_profile.h |
index 466bdf2a6678a9fc4e2b5350feac107bc8a6ab9c..63f0284133c5cc0750e6e078aeed6f7e6ff1297a 100644 |
--- a/device/bluetooth/bluetooth_profile.h |
+++ b/device/bluetooth/bluetooth_profile.h |
@@ -12,6 +12,7 @@ |
namespace device { |
+class BluetoothDevice; |
class BluetoothProfileMac; |
class BluetoothSocket; |
@@ -92,12 +93,12 @@ class BluetoothProfile { |
// The socket will be closed when all references are released; none of the |
// BluetoothProfile, or BluetoothAdapter or BluetoothDevice objects are |
// guaranteed to hold a reference so this may outlive all of them. |
- typedef base::Callback<void(scoped_refptr<BluetoothSocket>)> SocketCallback; |
- virtual void SetConnectionCallback(const SocketCallback& callback) = 0; |
- |
- private: |
- friend class BluetoothProfileMac; |
+ typedef base::Callback<void( |
+ const BluetoothDevice*, |
+ scoped_refptr<BluetoothSocket>)> ConnectionCallback; |
+ virtual void SetConnectionCallback(const ConnectionCallback& callback) = 0; |
+ protected: |
BluetoothProfile(); |
virtual ~BluetoothProfile(); |
}; |