Chromium Code Reviews| Index: device/bluetooth/bluetooth_remote_gatt_characteristic_win.h |
| diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h b/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h |
| index 98601163ccbe35051dbf82cc3b048456019ea4be..6a9d8b5663ad67c1fe91925d8a7a4f16aaa0f42b 100644 |
| --- a/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h |
| +++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h |
| @@ -75,6 +75,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin |
| uint16_t num, |
| BluetoothRemoteGattDescriptorWin* descriptor); |
| + void OnReadRemoteCharacteristicValueCallback( |
| + scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE> value, |
| + HRESULT hr); |
| + void OnWriteRemoteCharacteristicValueCallback(HRESULT hr); |
| + BluetoothGattService::GattErrorCode HRESULTToGattErrorCode(HRESULT hr); |
| + |
| BluetoothRemoteGattServiceWin* parent_service_; |
| scoped_refptr<BluetoothTaskManagerWin> task_manager_; |
| @@ -96,6 +102,16 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin |
| // has been sent out to avoid duplicate notification. |
| bool characteristic_added_notified_; |
| + // ReadRemoteCharacteristic request callbacks. |
| + std::pair<ValueCallback, ErrorCallback> |
| + read_remote_characteristic_value_callbacks_; |
|
scheib
2016/03/03 00:39:42
optional, but those names seem long vs:
read_callb
gogerald1
2016/03/03 16:09:24
Done.
|
| + |
| + // WriteRemoteCharacteristic request callbacks. |
| + std::pair<base::Closure, ErrorCallback> |
| + write_remote_characteristic_value_callbacks_; |
| + |
| + bool characteristic_value_read_or_write_in_progress_; |
| + |
| base::WeakPtrFactory<BluetoothRemoteGattCharacteristicWin> weak_ptr_factory_; |
| DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicWin); |
| }; |