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 16 matching lines...) Expand all Loading... |
27 namespace device { | 27 namespace device { |
28 | 28 |
29 class BluetoothAdapterMac; | 29 class BluetoothAdapterMac; |
30 class BluetoothRemoteGattServiceMac; | 30 class BluetoothRemoteGattServiceMac; |
31 class BluetoothRemoteGattDescriptorMac; | 31 class BluetoothRemoteGattDescriptorMac; |
32 | 32 |
33 class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac | 33 class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac |
34 : public BluetoothDeviceMac { | 34 : public BluetoothDeviceMac { |
35 public: | 35 public: |
36 BluetoothLowEnergyDeviceMac(BluetoothAdapterMac* adapter, | 36 BluetoothLowEnergyDeviceMac(BluetoothAdapterMac* adapter, |
37 CBPeripheral* peripheral); | 37 CBPeripheral* peripheral, |
| 38 bool connectable); |
38 ~BluetoothLowEnergyDeviceMac() override; | 39 ~BluetoothLowEnergyDeviceMac() override; |
39 | 40 |
40 // BluetoothDevice overrides. | 41 // BluetoothDevice overrides. |
41 std::string GetIdentifier() const override; | 42 std::string GetIdentifier() const override; |
42 uint32_t GetBluetoothClass() const override; | 43 uint32_t GetBluetoothClass() const override; |
43 std::string GetAddress() const override; | 44 std::string GetAddress() const override; |
44 BluetoothDevice::VendorIDSource GetVendorIDSource() const override; | 45 BluetoothDevice::VendorIDSource GetVendorIDSource() const override; |
45 uint16_t GetVendorID() const override; | 46 uint16_t GetVendorID() const override; |
46 uint16_t GetProductID() const override; | 47 uint16_t GetProductID() const override; |
47 uint16_t GetDeviceID() const override; | 48 uint16_t GetDeviceID() const override; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 }; | 160 }; |
160 | 161 |
161 // Stream operator for logging. | 162 // Stream operator for logging. |
162 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( | 163 DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<( |
163 std::ostream& out, | 164 std::ostream& out, |
164 const BluetoothLowEnergyDeviceMac& device); | 165 const BluetoothLowEnergyDeviceMac& device); |
165 | 166 |
166 } // namespace device | 167 } // namespace device |
167 | 168 |
168 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 169 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
OLD | NEW |