| 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_ADAPTER_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| 7 | 7 |
| 8 #include <IOKit/IOReturn.h> | 8 #include <IOKit/IOReturn.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // BluetoothAdapter override: | 105 // BluetoothAdapter override: |
| 106 void RemovePairingDelegateInternal( | 106 void RemovePairingDelegateInternal( |
| 107 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; | 107 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 // The length of time that must elapse since the last Inquiry response (on | 110 // The length of time that must elapse since the last Inquiry response (on |
| 111 // Classic devices) or call to BluetoothLowEnergyDevice::Update() (on Low | 111 // Classic devices) or call to BluetoothLowEnergyDevice::Update() (on Low |
| 112 // Energy) before a discovered device is considered to be no longer available. | 112 // Energy) before a discovered device is considered to be no longer available. |
| 113 const static NSTimeInterval kDiscoveryTimeoutSec; | 113 const static NSTimeInterval kDiscoveryTimeoutSec; |
| 114 | 114 |
| 115 friend class BluetoothTestMac; |
| 115 friend class BluetoothAdapterMacTest; | 116 friend class BluetoothAdapterMacTest; |
| 116 friend class BluetoothLowEnergyCentralManagerBridge; | 117 friend class BluetoothLowEnergyCentralManagerBridge; |
| 117 | 118 |
| 118 BluetoothAdapterMac(); | 119 BluetoothAdapterMac(); |
| 119 ~BluetoothAdapterMac() override; | 120 ~BluetoothAdapterMac() override; |
| 120 | 121 |
| 121 // BluetoothAdapter overrides: | 122 // BluetoothAdapter overrides: |
| 122 void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter, | 123 void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter, |
| 123 const base::Closure& callback, | 124 const base::Closure& callback, |
| 124 const ErrorCallback& error_callback) override; | 125 const ErrorCallback& error_callback) override; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 178 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
| 178 | 179 |
| 179 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 180 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 182 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace device | 185 } // namespace device |
| 185 | 186 |
| 186 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 187 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| OLD | NEW |