| 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) |
| 11 #import <IOBluetooth/IOBluetooth.h> | 11 #import <IOBluetooth/IOBluetooth.h> |
| 12 #endif // defined(OS_IOS) | 12 #endif // defined(OS_IOS) |
| 13 | 13 |
| 14 #include <stdint.h> | 14 #include <stdint.h> |
| 15 | 15 |
| 16 #include <set> | 16 #include <set> |
| 17 | 17 |
| 18 #include "base/mac/scoped_nsobject.h" | 18 #include "base/mac/scoped_nsobject.h" |
| 19 #include "base/mac/sdk_forward_declarations.h" | 19 #include "base/mac/sdk_forward_declarations.h" |
| 20 #include "base/macros.h" | 20 #include "base/macros.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "crypto/sha2.h" | 22 #include "crypto/sha2.h" |
| 23 #include "device/bluetooth/bluetooth_device_mac.h" | 23 #include "device/bluetooth/bluetooth_device_mac.h" |
| 24 | 24 |
| 25 @class BluetoothLowEnergyPeripheralDelegate; | 25 @class BluetoothLowEnergyPeripheralDelegate; |
| 26 | 26 |
| 27 namespace device { | 27 namespace device { |
| 28 | 28 |
| 29 class BluetoothAdapterMac; | 29 class BluetoothAdapterMac; |
| 30 class BluetoothLowEnergyDiscoverManagerMac; | |
| 31 class BluetoothRemoteGattServiceMac; | 30 class BluetoothRemoteGattServiceMac; |
| 32 | 31 |
| 33 class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac | 32 class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac |
| 34 : public BluetoothDeviceMac { | 33 : public BluetoothDeviceMac { |
| 35 public: | 34 public: |
| 36 BluetoothLowEnergyDeviceMac(BluetoothAdapterMac* adapter, | 35 BluetoothLowEnergyDeviceMac(BluetoothAdapterMac* adapter, |
| 37 CBPeripheral* peripheral); | 36 CBPeripheral* peripheral); |
| 38 ~BluetoothLowEnergyDeviceMac() override; | 37 ~BluetoothLowEnergyDeviceMac() override; |
| 39 | 38 |
| 40 // BluetoothDevice overrides. | 39 // BluetoothDevice overrides. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // A local address for the device created by hashing the peripheral | 135 // A local address for the device created by hashing the peripheral |
| 137 // identifier. | 136 // identifier. |
| 138 std::string hash_address_; | 137 std::string hash_address_; |
| 139 | 138 |
| 140 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); | 139 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 } // namespace device | 142 } // namespace device |
| 144 | 143 |
| 145 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 144 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
| OLD | NEW |