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

Side by Side Diff: device/bluetooth/bluetooth_low_energy_win.h

Issue 1749403002: Implement BluetoothRemoteGattCharacteristicWin::StartNotifySession and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move comments Created 4 years, 8 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 const PBTH_LE_GATT_CHARACTERISTIC characteristic, 169 const PBTH_LE_GATT_CHARACTERISTIC characteristic,
170 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE>* out_value); 170 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE>* out_value);
171 171
172 // Writes |characteristic| value in service with service device path 172 // Writes |characteristic| value in service with service device path
173 // |service_path| to |*new_value|. 173 // |service_path| to |*new_value|.
174 virtual HRESULT WriteCharacteristicValue( 174 virtual HRESULT WriteCharacteristicValue(
175 base::FilePath& service_path, 175 base::FilePath& service_path,
176 const PBTH_LE_GATT_CHARACTERISTIC characteristic, 176 const PBTH_LE_GATT_CHARACTERISTIC characteristic,
177 PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value); 177 PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value);
178 178
179 // Register GATT events of |event_type| in the service with service device
180 // path |service_path|. |event_parameter| is the event's parameter. |callback|
181 // is the function to be invoked if the event happened. |context| is the input
182 // parameter to be given back through |callback|. |*out_handle| stores the
183 // unique handle in OS for this registration.
184 virtual HRESULT RegisterGattEvents(base::FilePath& service_path,
185 BTH_LE_GATT_EVENT_TYPE event_type,
186 PVOID event_parameter,
187 PFNBLUETOOTH_GATT_EVENT_CALLBACK callback,
188 PVOID context,
189 BLUETOOTH_GATT_EVENT_HANDLE* out_handle);
190 virtual HRESULT UnregisterGattEvent(BLUETOOTH_GATT_EVENT_HANDLE event_handle);
191
192 // Writes |descriptor| value in service with service device path
193 // |service_path| to |*new_value|.
194 virtual HRESULT WriteDescriptorValue(base::FilePath& service_path,
195 const PBTH_LE_GATT_DESCRIPTOR descriptor,
196 PBTH_LE_GATT_DESCRIPTOR_VALUE new_value);
197
179 protected: 198 protected:
180 BluetoothLowEnergyWrapper(); 199 BluetoothLowEnergyWrapper();
181 virtual ~BluetoothLowEnergyWrapper(); 200 virtual ~BluetoothLowEnergyWrapper();
182 }; 201 };
183 202
184 } // namespace win 203 } // namespace win
185 } // namespace device 204 } // namespace device
186 205
187 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 206 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_gatt_notify_session_win.cc ('k') | device/bluetooth/bluetooth_low_energy_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698