| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 uint16_t GetVendorID() const override; | 45 uint16_t GetVendorID() const override; |
| 46 uint16_t GetProductID() const override; | 46 uint16_t GetProductID() const override; |
| 47 uint16_t GetDeviceID() const override; | 47 uint16_t GetDeviceID() const override; |
| 48 uint16_t GetAppearance() const override; | 48 uint16_t GetAppearance() const override; |
| 49 base::Optional<std::string> GetName() const override; | 49 base::Optional<std::string> GetName() const override; |
| 50 bool IsPaired() const override; | 50 bool IsPaired() const override; |
| 51 bool IsConnected() const override; | 51 bool IsConnected() const override; |
| 52 bool IsGattConnected() const override; | 52 bool IsGattConnected() const override; |
| 53 bool IsConnectable() const override; | 53 bool IsConnectable() const override; |
| 54 bool IsConnecting() const override; | 54 bool IsConnecting() const override; |
| 55 base::Optional<int8_t> GetInquiryRSSI() const override; | |
| 56 base::Optional<int8_t> GetInquiryTxPower() const override; | |
| 57 bool ExpectingPinCode() const override; | 55 bool ExpectingPinCode() const override; |
| 58 bool ExpectingPasskey() const override; | 56 bool ExpectingPasskey() const override; |
| 59 bool ExpectingConfirmation() const override; | 57 bool ExpectingConfirmation() const override; |
| 60 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 58 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
| 61 void Connect(PairingDelegate* pairing_delegate, | 59 void Connect(PairingDelegate* pairing_delegate, |
| 62 const base::Closure& callback, | 60 const base::Closure& callback, |
| 63 const ConnectErrorCallback& error_callback) override; | 61 const ConnectErrorCallback& error_callback) override; |
| 64 void SetPinCode(const std::string& pincode) override; | 62 void SetPinCode(const std::string& pincode) override; |
| 65 void SetPasskey(uint32_t passkey) override; | 63 void SetPasskey(uint32_t passkey) override; |
| 66 void ConfirmPairing() override; | 64 void ConfirmPairing() override; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // A local address for the device created by hashing the peripheral | 136 // A local address for the device created by hashing the peripheral |
| 139 // identifier. | 137 // identifier. |
| 140 std::string hash_address_; | 138 std::string hash_address_; |
| 141 | 139 |
| 142 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); | 140 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); |
| 143 }; | 141 }; |
| 144 | 142 |
| 145 } // namespace device | 143 } // namespace device |
| 146 | 144 |
| 147 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 145 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
| OLD | NEW |