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_; |