| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DEVICE_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
| 7 | 7 |
| 8 #import <IOBluetooth/IOBluetooth.h> | 8 #import <IOBluetooth/IOBluetooth.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void RejectPairing() override; | 51 virtual void RejectPairing() override; |
| 52 virtual void CancelPairing() override; | 52 virtual void CancelPairing() override; |
| 53 virtual void Disconnect( | 53 virtual void Disconnect( |
| 54 const base::Closure& callback, | 54 const base::Closure& callback, |
| 55 const ErrorCallback& error_callback) override; | 55 const ErrorCallback& error_callback) override; |
| 56 virtual void Forget(const ErrorCallback& error_callback) override; | 56 virtual void Forget(const ErrorCallback& error_callback) override; |
| 57 virtual void ConnectToService( | 57 virtual void ConnectToService( |
| 58 const BluetoothUUID& uuid, | 58 const BluetoothUUID& uuid, |
| 59 const ConnectToServiceCallback& callback, | 59 const ConnectToServiceCallback& callback, |
| 60 const ConnectToServiceErrorCallback& error_callback) override; | 60 const ConnectToServiceErrorCallback& error_callback) override; |
| 61 virtual void ConnectToServiceInsecurely( |
| 62 const BluetoothUUID& uuid, |
| 63 const ConnectToServiceCallback& callback, |
| 64 const ConnectToServiceErrorCallback& error_callback) override; |
| 61 virtual void CreateGattConnection( | 65 virtual void CreateGattConnection( |
| 62 const GattConnectionCallback& callback, | 66 const GattConnectionCallback& callback, |
| 63 const ConnectErrorCallback& error_callback) override; | 67 const ConnectErrorCallback& error_callback) override; |
| 64 virtual void StartConnectionMonitor( | 68 virtual void StartConnectionMonitor( |
| 65 const base::Closure& callback, | 69 const base::Closure& callback, |
| 66 const ErrorCallback& error_callback) override; | 70 const ErrorCallback& error_callback) override; |
| 67 | 71 |
| 68 // Returns the timestamp when the device was last seen during an inquiry. | 72 // Returns the timestamp when the device was last seen during an inquiry. |
| 69 // Returns nil if the device has never been seen during an inquiry. | 73 // Returns nil if the device has never been seen during an inquiry. |
| 70 NSDate* GetLastInquiryUpdate(); | 74 NSDate* GetLastInquiryUpdate(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 86 BluetoothHCITransmitPowerLevelType power_level_type) const; | 90 BluetoothHCITransmitPowerLevelType power_level_type) const; |
| 87 | 91 |
| 88 base::scoped_nsobject<IOBluetoothDevice> device_; | 92 base::scoped_nsobject<IOBluetoothDevice> device_; |
| 89 | 93 |
| 90 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 94 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
| 91 }; | 95 }; |
| 92 | 96 |
| 93 } // namespace device | 97 } // namespace device |
| 94 | 98 |
| 95 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 99 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
| OLD | NEW |