| Index: device/bluetooth/bluetooth_device_mac.h
|
| diff --git a/device/bluetooth/bluetooth_device_mac.h b/device/bluetooth/bluetooth_device_mac.h
|
| index ceb8515e8fe2700b263f0b41d77331c20de62ec0..0124eac3d7f793e9981a8bb7000afc0fe46a0989 100644
|
| --- a/device/bluetooth/bluetooth_device_mac.h
|
| +++ b/device/bluetooth/bluetooth_device_mac.h
|
| @@ -14,7 +14,7 @@ namespace device {
|
|
|
| class BluetoothAdapterMac;
|
|
|
| -class BluetoothDeviceMac : public BluetoothDevice {
|
| +class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceMac : public BluetoothDevice {
|
| public:
|
| ~BluetoothDeviceMac() override;
|
|
|
| @@ -22,6 +22,12 @@ class BluetoothDeviceMac : public BluetoothDevice {
|
| // nil if the device has never been seen.
|
| virtual NSDate* GetLastUpdateTime() const = 0;
|
|
|
| + // Converts between ConnectErrorCode and NSError.
|
| + static NSError* GetNSErrorFromConnectErrorCode(
|
| + BluetoothDevice::ConnectErrorCode error_code);
|
| + static BluetoothDevice::ConnectErrorCode GetConnectErrorCodeFromNSError(
|
| + NSError* error);
|
| +
|
| protected:
|
| BluetoothDeviceMac(BluetoothAdapterMac* adapter);
|
|
|
|
|