| 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 9e94b696c2a51f00ba2f76a47152a1870a87bdb5..5b09ea296a77f043e5eafa40ecc56f244ca5b15e 100644
|
| --- a/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h
|
| +++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h
|
| @@ -74,6 +74,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);
|
| +
|
| BluetoothAdapterWin* adapter_;
|
| BluetoothRemoteGattServiceWin* parent_service_;
|
| scoped_refptr<BluetoothTaskManagerWin> task_manager_;
|
| @@ -96,6 +102,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin
|
| // has been send out to avoid duplicate notification.
|
| bool characteristic_added_notified_;
|
|
|
| + // Vector stores ReadRemoteCharacteristic request callbacks.
|
| + std::vector<std::pair<ValueCallback, ErrorCallback>>
|
| + read_remote_characteristic_value_callbacks_;
|
| +
|
| + // Vector stores WriteRemoteCharacteristic request callbacks.
|
| + std::vector<std::pair<base::Closure, ErrorCallback>>
|
| + write_remote_characteristic_value_callbacks_;
|
| +
|
| base::WeakPtrFactory<BluetoothRemoteGattCharacteristicWin> weak_ptr_factory_;
|
| DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicWin);
|
| };
|
|
|