| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   49   uint16_t GetVendorID() const override; |   49   uint16_t GetVendorID() const override; | 
|   50   uint16_t GetProductID() const override; |   50   uint16_t GetProductID() const override; | 
|   51   uint16_t GetDeviceID() const override; |   51   uint16_t GetDeviceID() const override; | 
|   52   uint16_t GetAppearance() const override; |   52   uint16_t GetAppearance() const override; | 
|   53   base::Optional<std::string> GetName() const override; |   53   base::Optional<std::string> GetName() const override; | 
|   54   bool IsPaired() const override; |   54   bool IsPaired() const override; | 
|   55   bool IsConnected() const override; |   55   bool IsConnected() const override; | 
|   56   bool IsGattConnected() const override; |   56   bool IsGattConnected() const override; | 
|   57   bool IsConnectable() const override; |   57   bool IsConnectable() const override; | 
|   58   bool IsConnecting() const override; |   58   bool IsConnecting() const override; | 
|   59   int16_t GetInquiryRSSI() const override; |   59   base::Optional<int8_t> GetInquiryRSSI() const override; | 
|   60   int16_t GetInquiryTxPower() const override; |   60   base::Optional<int8_t> GetInquiryTxPower() const override; | 
|   61   bool ExpectingPinCode() const override; |   61   bool ExpectingPinCode() const override; | 
|   62   bool ExpectingPasskey() const override; |   62   bool ExpectingPasskey() const override; | 
|   63   bool ExpectingConfirmation() const override; |   63   bool ExpectingConfirmation() const override; | 
|   64   void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |   64   void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 
|   65   void Connect(PairingDelegate* pairing_delegate, |   65   void Connect(PairingDelegate* pairing_delegate, | 
|   66                const base::Closure& callback, |   66                const base::Closure& callback, | 
|   67                const ConnectErrorCallback& error_callback) override; |   67                const ConnectErrorCallback& error_callback) override; | 
|   68   void SetPinCode(const std::string& pincode) override; |   68   void SetPinCode(const std::string& pincode) override; | 
|   69   void SetPasskey(uint32_t passkey) override; |   69   void SetPasskey(uint32_t passkey) override; | 
|   70   void ConfirmPairing() override; |   70   void ConfirmPairing() override; | 
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  148   // A local address for the device created by hashing the peripheral |  148   // A local address for the device created by hashing the peripheral | 
|  149   // identifier. |  149   // identifier. | 
|  150   std::string hash_address_; |  150   std::string hash_address_; | 
|  151  |  151  | 
|  152   DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); |  152   DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); | 
|  153 }; |  153 }; | 
|  154  |  154  | 
|  155 }  // namespace device |  155 }  // namespace device | 
|  156  |  156  | 
|  157 #endif  // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |  157 #endif  // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 
| OLD | NEW |