Index: device/bluetooth/bluetooth_low_energy_win.h |
diff --git a/device/bluetooth/bluetooth_low_energy_win.h b/device/bluetooth/bluetooth_low_energy_win.h |
index 9d924350433b5afbc9d86eb770eb397d148c740b..62a80a5d013c0641087dad5df536c72a147923cd 100644 |
--- a/device/bluetooth/bluetooth_low_energy_win.h |
+++ b/device/bluetooth/bluetooth_low_energy_win.h |
@@ -74,9 +74,6 @@ class DEVICE_BLUETOOTH_EXPORT DevicePropertyValue { |
DISALLOW_COPY_AND_ASSIGN(DevicePropertyValue); |
}; |
-// Returns true only on Windows platforms supporting Bluetooth Low Energy. |
-bool DEVICE_BLUETOOTH_EXPORT IsBluetoothLowEnergySupported(); |
- |
struct DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyServiceInfo { |
BluetoothLowEnergyServiceInfo(); |
~BluetoothLowEnergyServiceInfo(); |
@@ -113,6 +110,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper { |
static void DeleteInstance(); |
static void SetInstanceForTest(BluetoothLowEnergyWrapper* instance); |
+ // Returns true only on Windows platforms supporting Bluetooth Low Energy. |
+ virtual bool IsBluetoothLowEnergySupported(); |
+ |
// Enumerates the list of known (i.e. already paired) Bluetooth LE devices on |
// this machine. In case of error, returns false and sets |error| with an |
// error message describing the problem. |
@@ -144,6 +144,24 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper { |
ScopedVector<BluetoothLowEnergyServiceInfo>* services, |
std::string* error); |
+ // Reads included GATT services of |service| with service device path |
+ // |service_path|. The result will be stored in |*out_included_services| and |
+ // |*out_counts|. |
+ virtual HRESULT ReadIncludedServicesOfAService( |
+ base::FilePath& service_path, |
+ const PBTH_LE_GATT_SERVICE service, |
+ scoped_ptr<BTH_LE_GATT_SERVICE>* out_included_services, |
+ USHORT* out_counts); |
+ |
+ // Reads characteristics of |service| with service device path |service_path|. |
+ // The result will be stored in |*out_included_characteristics| and |
+ // |*out_counts|. |
+ virtual HRESULT ReadCharacteristicsOfAService( |
+ base::FilePath& service_path, |
+ const PBTH_LE_GATT_SERVICE service, |
+ scoped_ptr<BTH_LE_GATT_CHARACTERISTIC>* out_included_characteristics, |
+ USHORT* out_counts); |
+ |
protected: |
BluetoothLowEnergyWrapper(); |
virtual ~BluetoothLowEnergyWrapper(); |