OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DEVICE_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
7 | 7 |
8 #if defined(OS_IOS) | 8 #if defined(OS_IOS) |
9 #import <CoreBluetooth/CoreBluetooth.h> | 9 #import <CoreBluetooth/CoreBluetooth.h> |
10 #else // !defined(OS_IOS) | 10 #else // !defined(OS_IOS) |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 std::string hash_address_; | 144 std::string hash_address_; |
145 | 145 |
146 // Increases each time -[CBPeripheral discoverServices:] is called, and | 146 // Increases each time -[CBPeripheral discoverServices:] is called, and |
147 // decreases each time DidDiscoverPrimaryServices() is called. Once the | 147 // decreases each time DidDiscoverPrimaryServices() is called. Once the |
148 // value is set to 0, characteristics and properties are discovered. | 148 // value is set to 0, characteristics and properties are discovered. |
149 int discovery_pending_count_; | 149 int discovery_pending_count_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); | 151 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); |
152 }; | 152 }; |
153 | 153 |
| 154 // Stream operator for logging. |
| 155 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( |
| 156 std::ostream& out, |
| 157 const BluetoothLowEnergyDeviceMac& device); |
| 158 |
154 } // namespace device | 159 } // namespace device |
155 | 160 |
156 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 161 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
OLD | NEW |