Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2639)

Unified Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_win.h

Issue 1749403002: Implement BluetoothRemoteGattCharacteristicWin::StartNotifySession and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 bf37ccc17e8a470acdf7a2c495b9173f4358a1ed..7803fd7528a2c879eb2ce440a3ab0fd13c736e4b 100644
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_win.h
@@ -80,6 +80,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin
HRESULT hr);
void OnWriteRemoteCharacteristicValueCallback(HRESULT hr);
BluetoothGattService::GattErrorCode HRESULTToGattErrorCode(HRESULT hr);
+ void OnGattCharacteristicValueChanged(
+ scoped_ptr<std::vector<uint8_t>> new_value);
+ void GattEventRegistrationCallback(PVOID event_handle, HRESULT hr);
+ void ClearIncludedDescriptors();
BluetoothRemoteGattServiceWin* parent_service_;
scoped_refptr<BluetoothTaskManagerWin> task_manager_;
@@ -110,6 +114,16 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin
bool characteristic_value_read_or_write_in_progress_;
+ // Vector stores StartNotifySession request callbacks.
+ std::vector<std::pair<NotifySessionCallback, ErrorCallback>>
+ start_notify_session_callbacks_;
+
+ // Flag indicates if GATT event registration is in progress.
+ bool gatt_event_registeration_in_progress_;
+
+ // GATT event handle returned by GattEventRegistrationCallback.
+ PVOID gatt_event_handle_;
+
base::WeakPtrFactory<BluetoothRemoteGattCharacteristicWin> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicWin);
};
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win_fake.cc ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698