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; | |
116 friend class BluetoothAdapterMacTest; | 115 friend class BluetoothAdapterMacTest; |
117 friend class BluetoothLowEnergyCentralManagerBridge; | 116 friend class BluetoothLowEnergyCentralManagerBridge; |
118 | 117 |
119 BluetoothAdapterMac(); | 118 BluetoothAdapterMac(); |
120 ~BluetoothAdapterMac() override; | 119 ~BluetoothAdapterMac() override; |
121 | 120 |
122 // BluetoothAdapter overrides: | 121 // BluetoothAdapter overrides: |
123 void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter, | 122 void AddDiscoverySession(BluetoothDiscoveryFilter* discovery_filter, |
124 const base::Closure& callback, | 123 const base::Closure& callback, |
125 const ErrorCallback& error_callback) override; | 124 const ErrorCallback& error_callback) override; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 177 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
179 | 178 |
180 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 179 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
181 | 180 |
182 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 181 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
183 }; | 182 }; |
184 | 183 |
185 } // namespace device | 184 } // namespace device |
186 | 185 |
187 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 186 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
OLD | NEW |