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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Bluetooth LE device |device_path| into |services|. In case of error, 137 // Bluetooth LE device |device_path| into |services|. In case of error,
138 // returns false and sets |error| with an error message describing the 138 // returns false and sets |error| with an error message describing the
139 // problem. 139 // problem.
140 // Note: This function returns an error if Bluetooth Low Energy is not 140 // Note: This function returns an error if Bluetooth Low Energy is not
141 // supported on this Windows platform. 141 // supported on this Windows platform.
142 virtual bool EnumerateKnownBluetoothLowEnergyServices( 142 virtual bool EnumerateKnownBluetoothLowEnergyServices(
143 const base::FilePath& device_path, 143 const base::FilePath& device_path,
144 ScopedVector<BluetoothLowEnergyServiceInfo>* services, 144 ScopedVector<BluetoothLowEnergyServiceInfo>* services,
145 std::string* error); 145 std::string* error);
146 146
147 // Reads included GATT services of |service| with service device path
148 // |service_path|. The result will be stored in |*out_included_services| and
149 // |*out_counts|.
150 virtual HRESULT ReadIncludedServicesOfAService(
151 base::FilePath& service_path,
152 const PBTH_LE_GATT_SERVICE service,
153 scoped_ptr<BTH_LE_GATT_SERVICE>* out_included_services,
154 USHORT* out_counts);
155
156 // Reads characteristics of |service| with service device path |service_path|.
157 // The result will be stored in |*out_included_characteristics| and
158 // |*out_counts|.
159 virtual HRESULT ReadCharacteristicsOfAService(
160 base::FilePath& service_path,
161 const PBTH_LE_GATT_SERVICE service,
162 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC>* out_included_characteristics,
163 USHORT* out_counts);
164
147 protected: 165 protected:
148 BluetoothLowEnergyWrapper(); 166 BluetoothLowEnergyWrapper();
149 virtual ~BluetoothLowEnergyWrapper(); 167 virtual ~BluetoothLowEnergyWrapper();
150 }; 168 };
151 169
152 } // namespace win 170 } // namespace win
153 } // namespace device 171 } // namespace device
154 172
155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 173 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698