Chromium Code Reviews| 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 15 matching lines...) Expand all Loading... | |
| 26 | 26 |
| 27 namespace device { | 27 namespace device { |
| 28 | 28 |
| 29 class BluetoothAdapterMac; | 29 class BluetoothAdapterMac; |
| 30 class BluetoothLowEnergyDiscoverManagerMac; | 30 class BluetoothLowEnergyDiscoverManagerMac; |
| 31 class BluetoothRemoteGattServiceMac; | 31 class BluetoothRemoteGattServiceMac; |
| 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, |
|
ortuno
2016/08/15 23:58:09
I'm refactoring this function in another CL. Hopef
jracle (use Gerrit)
2016/08/16 20:14:17
Great. Sure will modify int to const int*, good po
| |
| 37 CBPeripheral* peripheral, | 37 CBPeripheral* peripheral, |
| 38 NSDictionary* advertisement_data, | 38 NSDictionary* advertisement_data = nil, |
| 39 int rssi); | 39 int rssi = -1); |
| 40 ~BluetoothLowEnergyDeviceMac() override; | 40 ~BluetoothLowEnergyDeviceMac() override; |
| 41 | 41 |
| 42 int GetRSSI() const; | 42 int GetRSSI() const; |
| 43 | 43 |
| 44 // BluetoothDevice overrides. | 44 // BluetoothDevice overrides. |
| 45 std::string GetIdentifier() const override; | 45 std::string GetIdentifier() const override; |
| 46 uint32_t GetBluetoothClass() const override; | 46 uint32_t GetBluetoothClass() const override; |
| 47 std::string GetAddress() const override; | 47 std::string GetAddress() const override; |
| 48 BluetoothDevice::VendorIDSource GetVendorIDSource() const override; | 48 BluetoothDevice::VendorIDSource GetVendorIDSource() const override; |
| 49 uint16_t GetVendorID() const override; | 49 uint16_t GetVendorID() const override; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 | 152 |
| 153 // The services (identified by UUIDs) that this device provides. | 153 // The services (identified by UUIDs) that this device provides. |
| 154 std::set<BluetoothUUID> advertised_uuids_; | 154 std::set<BluetoothUUID> advertised_uuids_; |
| 155 | 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); | 156 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace device | 159 } // namespace device |
| 160 | 160 |
| 161 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 161 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
| OLD | NEW |