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

Unified Diff: device/bluetooth/bluetooth_low_energy_win.h

Issue 1690133002: Implement BluetoothRemoteGattServiceWin and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments and split out of included GATT services 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_low_energy_win.h
diff --git a/device/bluetooth/bluetooth_low_energy_win.h b/device/bluetooth/bluetooth_low_energy_win.h
index 9d924350433b5afbc9d86eb770eb397d148c740b..a2bae9e4e6cc4cceb01ee6346b68d0d77c525216 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,15 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper {
ScopedVector<BluetoothLowEnergyServiceInfo>* services,
std::string* error);
+ // 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();

Powered by Google App Engine
This is Rietveld 408576698