| Index: device/bluetooth/bluetooth_device.h
|
| diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
|
| index 09d179777ac7a088d1654151b8ffb7ff2857bf15..67948f800b92fb36ca8e046a080e3717b5652435 100644
|
| --- a/device/bluetooth/bluetooth_device.h
|
| +++ b/device/bluetooth/bluetooth_device.h
|
| @@ -23,6 +23,7 @@ class BinaryValue;
|
|
|
| namespace device {
|
|
|
| +class BluetoothAdapter;
|
| class BluetoothGattConnection;
|
| class BluetoothGattService;
|
| class BluetoothSocket;
|
| @@ -430,7 +431,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
|
| static std::string CanonicalizeAddress(const std::string& address);
|
|
|
| protected:
|
| - BluetoothDevice();
|
| + BluetoothDevice(BluetoothAdapter* adapter);
|
|
|
| // Returns the internal name of the Bluetooth device, used by GetName().
|
| virtual std::string GetDeviceName() const = 0;
|
| @@ -442,6 +443,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
|
| void SetServiceData(BluetoothUUID serviceUUID, const char* buffer,
|
| size_t size);
|
|
|
| + // Raw pointer to adapter owning this device object. Subclasses use platform
|
| + // specific pointers via adapter_.
|
| + BluetoothAdapter* adapter_;
|
| +
|
| // Mapping from the platform-specific GATT service identifiers to
|
| // BluetoothGattService objects.
|
| typedef std::map<std::string, BluetoothGattService*> GattServiceMap;
|
|
|