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

Unified Diff: device/bluetooth/bluetooth_task_manager_win.h

Issue 1728163006: Implement BluetoothRemoteGattCharacteristicWin::GetDescriptors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 10 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_task_manager_win.h
diff --git a/device/bluetooth/bluetooth_task_manager_win.h b/device/bluetooth/bluetooth_task_manager_win.h
index 354a5793c4fd90bf696aaf5a6011ea44c0c7ea77..35d22cdcebffc0dfb7c011cbfa4783f840304747 100644
--- a/device/bluetooth/bluetooth_task_manager_win.h
+++ b/device/bluetooth/bluetooth_task_manager_win.h
@@ -126,6 +126,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothTaskManagerWin
typedef base::Callback<
void(scoped_ptr<BTH_LE_GATT_CHARACTERISTIC>, uint16_t, HRESULT)>
GetGattIncludedCharacteristicsCallback;
+ typedef base::Callback<
+ void(scoped_ptr<BTH_LE_GATT_DESCRIPTOR>, uint16_t, HRESULT)>
+ GetGattIncludedDescriptorsCallback;
// Get all included characteristics of a given service. The service is
// uniquely identified by its |uuid| and |attribute_handle| with service
@@ -137,6 +140,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothTaskManagerWin
uint16_t attribute_handle,
const GetGattIncludedCharacteristicsCallback& callback);
+ // Get all included descriptors of a given |characterisitc| in service
+ // with |service_path|. The result is returned asynchronously through
+ // |callback|.
+ void PostGetGattIncludedDescriptors(
+ const base::FilePath& service_path,
+ const PBTH_LE_GATT_CHARACTERISTIC characteristic,
+ const GetGattIncludedDescriptorsCallback& callback);
+
private:
friend class base::RefCountedThreadSafe<BluetoothTaskManagerWin>;
friend class BluetoothTaskManagerWinTest;
@@ -233,6 +244,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothTaskManagerWin
BluetoothUUID uuid,
uint16_t attribute_handle,
const GetGattIncludedCharacteristicsCallback& callback);
+ void GetGattIncludedDescriptors(
+ base::FilePath service_path,
+ BTH_LE_GATT_CHARACTERISTIC characteristic,
+ const GetGattIncludedDescriptorsCallback& callback);
// UI task runner reference.
scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_service_win.h ('k') | device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698