Chromium Code Reviews| Index: device/bluetooth/bluetooth_remote_gatt_descriptor_android.h |
| diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h b/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h |
| index bc50d65a1fc717cee4c90035b3e68cdde4798f3c..fe9752677b749f6814f9de7e21c9c4535c499794 100644 |
| --- a/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h |
| +++ b/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h |
| @@ -50,6 +50,17 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattDescriptorAndroid |
| const base::Closure& callback, |
| const ErrorCallback& error_callback) override; |
| + // Callback after Read operation completes. |
|
scheib
2016/02/26 04:27:01
Called when
tommyt
2016/03/01 14:45:15
Done.
|
| + void OnRead(JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& jcaller, |
| + int32_t status, |
| + const base::android::JavaParamRef<jbyteArray>& value); |
| + |
| + // Callback after Write operation completes. |
|
scheib
2016/02/26 04:27:01
Called when
tommyt
2016/03/01 14:45:15
Done.
|
| + void OnWrite(JNIEnv* env, |
| + const base::android::JavaParamRef<jobject>& jcaller, |
| + int32_t status); |
| + |
| private: |
| BluetoothRemoteGattDescriptorAndroid(const std::string& instanceId); |
| @@ -60,6 +71,18 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattDescriptorAndroid |
| // Adapter unique instance ID. |
| std::string instance_id_; |
| + // ReadRemoteCharacteristic callbacks and pending state. |
| + bool read_pending_ = false; |
| + ValueCallback read_callback_; |
| + ErrorCallback read_error_callback_; |
| + |
| + // WriteRemoteCharacteristic callbacks and pending state. |
| + bool write_pending_ = false; |
| + base::Closure write_callback_; |
| + ErrorCallback write_error_callback_; |
| + |
| + std::vector<uint8_t> value_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattDescriptorAndroid); |
| }; |