OLD | NEW |
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_CHARACTERISTIC_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ |
7 | 7 |
8 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" | 8 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" |
9 | 9 |
10 #include <unordered_map> | 10 #include <unordered_map> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Stores SubscribeToNotifications request callbacks. | 128 // Stores SubscribeToNotifications request callbacks. |
129 PendingNotifyCallbacks subscribe_to_notification_callbacks_; | 129 PendingNotifyCallbacks subscribe_to_notification_callbacks_; |
130 // Stores UnsubscribeFromNotifications request callbacks. | 130 // Stores UnsubscribeFromNotifications request callbacks. |
131 PendingNotifyCallbacks unsubscribe_from_notification_callbacks_; | 131 PendingNotifyCallbacks unsubscribe_from_notification_callbacks_; |
132 // Map of descriptors, keyed by descriptor identifier. | 132 // Map of descriptors, keyed by descriptor identifier. |
133 std::unordered_map<std::string, | 133 std::unordered_map<std::string, |
134 std::unique_ptr<BluetoothRemoteGattDescriptorMac>> | 134 std::unique_ptr<BluetoothRemoteGattDescriptorMac>> |
135 gatt_descriptor_macs_; | 135 gatt_descriptor_macs_; |
136 }; | 136 }; |
137 | 137 |
| 138 // Stream operator for logging. |
| 139 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( |
| 140 std::ostream& out, |
| 141 const BluetoothRemoteGattCharacteristicMac& characteristic); |
| 142 |
138 } // namespace device | 143 } // namespace device |
139 | 144 |
140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ | 145 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_MAC_H_ |
OLD | NEW |