Index: device/bluetooth/bluetooth_adapter_mac.h |
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h |
index d75cbc53e912031cb930a38893c9c7910dffa668..5da74cbd99722b7195f04c4d5589c2c37033bd93 100644 |
--- a/device/bluetooth/bluetooth_adapter_mac.h |
+++ b/device/bluetooth/bluetooth_adapter_mac.h |
@@ -18,6 +18,7 @@ |
#include "base/observer_list.h" |
#include "device/bluetooth/bluetooth_adapter.h" |
#include "device/bluetooth/bluetooth_audio_sink.h" |
+#include "device/bluetooth/bluetooth_device.h" |
#include "device/bluetooth/bluetooth_discovery_manager_mac.h" |
#include "device/bluetooth/bluetooth_export.h" |
#include "device/bluetooth/bluetooth_low_energy_device_mac.h" |
@@ -108,6 +109,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac |
void DidFailToConnectPeripheral(CBPeripheral* peripheral, NSError* error); |
void DidDisconnectPeripheral(CBPeripheral* peripheral, NSError* error); |
+ static NSError* GetNSErrorFromConnectErrorCode( |
+ BluetoothDevice::ConnectErrorCode error_code); |
+ static BluetoothDevice::ConnectErrorCode GetConnectErrorCodeFromNSError( |
+ NSError* error); |
+ |
protected: |
// BluetoothAdapter override: |
void RemovePairingDelegateInternal( |