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

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

Issue 2595373003: Bluetooth: mac: Working on macOS descriptor implementation. (Closed)
Patch Set: Fixes Created 3 years, 11 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_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 private: 47 private:
48 friend class BluetoothLowEnergyDeviceMac; 48 friend class BluetoothLowEnergyDeviceMac;
49 friend class BluetoothRemoteGattCharacteristicMac; 49 friend class BluetoothRemoteGattCharacteristicMac;
50 friend class BluetoothTestMac; 50 friend class BluetoothTestMac;
51 51
52 // Starts discovering characteristics by calling CoreBluetooth. 52 // Starts discovering characteristics by calling CoreBluetooth.
53 void DiscoverCharacteristics(); 53 void DiscoverCharacteristics();
54 // Called by the BluetoothLowEnergyDeviceMac instance when the characteristics 54 // Called by the BluetoothLowEnergyDeviceMac instance when the characteristics
55 // has been discovered. 55 // has been discovered.
56 void DidDiscoverCharacteristics(); 56 void DidDiscoverCharacteristics();
57 // Called by the BluetoothLowEnergyDeviceMac instance when the descriptors has
58 // been discovered.
59 void DidDiscoverDescriptors(CBCharacteristic* characteristic);
57 // Sends notification if this service is ready with all characteristics 60 // Sends notification if this service is ready with all characteristics
58 // discovered. 61 // discovered.
59 void SendNotificationIfComplete(); 62 void SendNotificationIfComplete();
60 // Called by the BluetoothLowEnergyDeviceMac instance when the 63 // Called by the BluetoothLowEnergyDeviceMac instance when the
61 // characteristics value has been read. 64 // characteristics value has been read.
62 void DidUpdateValue(CBCharacteristic* characteristic, NSError* error); 65 void DidUpdateValue(CBCharacteristic* characteristic, NSError* error);
63 // Called by the BluetoothLowEnergyDeviceMac instance when the 66 // Called by the BluetoothLowEnergyDeviceMac instance when the
64 // characteristics value has been written. 67 // characteristics value has been written.
65 void DidWriteValue(CBCharacteristic* characteristic, NSError* error); 68 void DidWriteValue(CBCharacteristic* characteristic, NSError* error);
66 // Called by the BluetoothLowEnergyDeviceMac instance when the notify session 69 // Called by the BluetoothLowEnergyDeviceMac instance when the notify session
(...skipping 28 matching lines...) Expand all
95 BluetoothUUID uuid_; 98 BluetoothUUID uuid_;
96 // Is true if the characteristics has been discovered. 99 // Is true if the characteristics has been discovered.
97 bool is_discovery_complete_; 100 bool is_discovery_complete_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceMac); 102 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceMac);
100 }; 103 };
101 104
102 } // namespace device 105 } // namespace device
103 106
104 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_ 107 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_descriptor_unittest.cc ('k') | device/bluetooth/bluetooth_remote_gatt_service_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698