Chromium Code Reviews| Index: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm |
| diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm |
| index 27f8902da2657bdcb32eb99e2946c70a678c16ff..951274d58bcc3f62550e04ba5fdbb189db990609 100644 |
| --- a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm |
| +++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm |
| @@ -10,7 +10,7 @@ |
| #include "base/threading/thread_task_runner_handle.h" |
| #include "device/bluetooth/bluetooth_adapter_mac.h" |
| #include "device/bluetooth/bluetooth_device_mac.h" |
| -#include "device/bluetooth/bluetooth_gatt_notify_session_mac.h" |
| +#include "device/bluetooth/bluetooth_gatt_notify_session.h" |
| #include "device/bluetooth/bluetooth_remote_gatt_service_mac.h" |
| namespace device { |
| @@ -134,8 +134,8 @@ void BluetoothRemoteGattCharacteristicMac::StartNotifySession( |
| const ErrorCallback& error_callback) { |
| if (IsNotifying()) { |
| VLOG(2) << "Already notifying. Creating notify session."; |
| - std::unique_ptr<BluetoothGattNotifySessionMac> notify_session( |
| - new BluetoothGattNotifySessionMac(weak_ptr_factory_.GetWeakPtr())); |
| + std::unique_ptr<BluetoothGattNotifySession> notify_session( |
| + new BluetoothGattNotifySession(weak_ptr_factory_.GetWeakPtr())); |
| base::ThreadTaskRunnerHandle::Get()->PostTask( |
| FROM_HERE, |
| base::Bind(callback, base::Passed(std::move(notify_session)))); |
| @@ -223,6 +223,18 @@ void BluetoothRemoteGattCharacteristicMac::WriteRemoteCharacteristic( |
| } |
| } |
| +void BluetoothRemoteGattCharacteristicMac::SubscribeToNotifications( |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) { |
| + NOTIMPLEMENTED(); |
|
ortuno
2016/07/28 21:59:30
Can you open an issue that mentions that this need
tommyt
2016/08/01 12:48:27
I have created https://crbug.com/633191
|
| +} |
| + |
| +void BluetoothRemoteGattCharacteristicMac::UnsubscribeFromNotifications( |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) { |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| void BluetoothRemoteGattCharacteristicMac::DidUpdateValue(NSError* error) { |
| // This method is called when the characteristic is read and when a |
| // notification is received. |
| @@ -306,7 +318,7 @@ void BluetoothRemoteGattCharacteristicMac::DidUpdateNotificationState( |
| return; |
| } |
| for (const auto& callback : reentrant_safe_callbacks) { |
| - callback.first.Run(base::MakeUnique<BluetoothGattNotifySessionMac>( |
| + callback.first.Run(base::MakeUnique<BluetoothGattNotifySession>( |
| weak_ptr_factory_.GetWeakPtr())); |
| } |
| } |