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..bf37ccc17e8a470acdf7a2c495b9173f4358a1ed 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,14 @@ 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_characteristic_value_callbacks_; |
+ |
+ // WriteRemoteCharacteristic request callbacks. |
+ std::pair<base::Closure, ErrorCallback> write_characteristic_value_callbacks_; |
+ |
+ bool characteristic_value_read_or_write_in_progress_; |
+ |
base::WeakPtrFactory<BluetoothRemoteGattCharacteristicWin> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicWin); |
}; |