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

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

Issue 1728163006: Implement BluetoothRemoteGattCharacteristicWin::GetDescriptors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_REMOTE_GATT_SERVICE_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_WIN_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const ErrorCallback& error_callback) override; 53 const ErrorCallback& error_callback) override;
54 54
55 // Notify |characteristic| discovery complete, |characteristic| is the 55 // Notify |characteristic| discovery complete, |characteristic| is the
56 // included characteritic of this service. 56 // included characteritic of this service.
57 void GattCharacteristicDiscoveryComplete( 57 void GattCharacteristicDiscoveryComplete(
58 BluetoothRemoteGattCharacteristicWin* characteristic); 58 BluetoothRemoteGattCharacteristicWin* characteristic);
59 59
60 // Update included services and characteristics. 60 // Update included services and characteristics.
61 void Update(); 61 void Update();
62 uint16_t GetAttributeHandle() const { return service_attribute_handle_; } 62 uint16_t GetAttributeHandle() const { return service_attribute_handle_; }
63 base::FilePath GetServicePath() { return service_path_; }
63 64
64 private: 65 private:
65 void OnGetIncludedCharacteristics( 66 void OnGetIncludedCharacteristics(
66 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC> characteristics, 67 scoped_ptr<BTH_LE_GATT_CHARACTERISTIC> characteristics,
67 uint16_t num, 68 uint16_t num,
68 HRESULT hr); 69 HRESULT hr);
69 void UpdateIncludedCharacteristics( 70 void UpdateIncludedCharacteristics(
70 PBTH_LE_GATT_CHARACTERISTIC characteristics, 71 PBTH_LE_GATT_CHARACTERISTIC characteristics,
71 uint16_t num); 72 uint16_t num);
72 73
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Flag indicates if asynchronous discovery of included characteristic has 120 // Flag indicates if asynchronous discovery of included characteristic has
120 // completed. 121 // completed.
121 bool included_characteristics_discovered_; 122 bool included_characteristics_discovered_;
122 123
123 base::WeakPtrFactory<BluetoothRemoteGattServiceWin> weak_ptr_factory_; 124 base::WeakPtrFactory<BluetoothRemoteGattServiceWin> weak_ptr_factory_;
124 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceWin); 125 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceWin);
125 }; 126 };
126 127
127 } // namespace device. 128 } // namespace device.
128 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_WIN_H_ 129 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698