Chromium Code Reviews| Index: device/bluetooth/bluetooth_local_gatt_characteristic.h |
| diff --git a/device/bluetooth/bluetooth_local_gatt_characteristic.h b/device/bluetooth/bluetooth_local_gatt_characteristic.h |
| index 5511c79a561700c44c2af3e5cd296ec372ce83bb..e1796913d89d79512a9a1fc9055ef7ea7934796d 100644 |
| --- a/device/bluetooth/bluetooth_local_gatt_characteristic.h |
| +++ b/device/bluetooth/bluetooth_local_gatt_characteristic.h |
| @@ -55,15 +55,18 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLocalGattCharacteristic |
| Permissions permissions, |
| BluetoothLocalGattService* service); |
| - // Notify that the remote central that the value of this characteristic has |
| - // been changed and the new value is |new_value|. |indicate| should be set to |
| - // true if we want to use an indication instead of a notification. An |
| - // indication waits for a response from the remote, making it more reliable |
| - // but notifications may be faster. |
| + // Notify that the remote device |device| that the value of characteristic |
|
scheib
2016/05/17 19:54:27
"Notify the remote"
rkc
2016/05/17 19:56:35
Done.
|
| + // |characteristic| has changed and the new value is |new_value|. |indicate| |
| + // should be set to true if we want to use an indication instead of a |
| + // notification. An indication waits for a response from the remote, making |
| + // it more reliable but notifications may be faster. |
| virtual NotificationStatus NotifyValueChanged( |
| + const BluetoothDevice* device, |
| const std::vector<uint8_t>& new_value, |
| bool indicate) = 0; |
| + virtual BluetoothLocalGattService* GetService() const = 0; |
| + |
| protected: |
| BluetoothLocalGattCharacteristic(); |
| ~BluetoothLocalGattCharacteristic() override; |