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

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

Issue 2638653002: Bluetooth: macOS: DidModifyServices can happens while scanning (Closed)
Patch Set: Merge Created 3 years, 7 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 base::scoped_nsobject<CBService> service_; 89 base::scoped_nsobject<CBService> service_;
90 // Map of characteristics, keyed by characteristic identifier. 90 // Map of characteristics, keyed by characteristic identifier.
91 std::unordered_map<std::string, 91 std::unordered_map<std::string,
92 std::unique_ptr<BluetoothRemoteGattCharacteristicMac>> 92 std::unique_ptr<BluetoothRemoteGattCharacteristicMac>>
93 gatt_characteristic_macs_; 93 gatt_characteristic_macs_;
94 bool is_primary_; 94 bool is_primary_;
95 // Service identifier. 95 // Service identifier.
96 std::string identifier_; 96 std::string identifier_;
97 // Service UUID. 97 // Service UUID.
98 BluetoothUUID uuid_; 98 BluetoothUUID uuid_;
99 // Is true if the characteristics has been discovered. 99 // Is true if the characteristics has been discovered and
100 // discovery_pending_count_ is 0.
100 bool is_discovery_complete_; 101 bool is_discovery_complete_;
102 // Increased each time DiscoverCharacteristics() is called. And decreased when
103 // DidDiscoverCharacteristics() is called.
104 int discovery_pending_count_;
101 105
102 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceMac); 106 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattServiceMac);
103 }; 107 };
104 108
105 // Stream operator for logging. 109 // Stream operator for logging.
106 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( 110 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<(
107 std::ostream& out, 111 std::ostream& out,
108 const BluetoothRemoteGattServiceMac& service); 112 const BluetoothRemoteGattServiceMac& service);
109 113
110 } // namespace device 114 } // namespace device
111 115
112 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_SERVICE_MAC_H_ 116 #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