| 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 <memory> | 10 #include <memory> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const ServiceOptions& options, | 82 const ServiceOptions& options, |
| 83 const CreateServiceCallback& callback, | 83 const CreateServiceCallback& callback, |
| 84 const CreateServiceErrorCallback& error_callback) override; | 84 const CreateServiceErrorCallback& error_callback) override; |
| 85 void RegisterAudioSink( | 85 void RegisterAudioSink( |
| 86 const BluetoothAudioSink::Options& options, | 86 const BluetoothAudioSink::Options& options, |
| 87 const AcquiredCallback& callback, | 87 const AcquiredCallback& callback, |
| 88 const BluetoothAudioSink::ErrorCallback& error_callback) override; | 88 const BluetoothAudioSink::ErrorCallback& error_callback) override; |
| 89 void RegisterAdvertisement( | 89 void RegisterAdvertisement( |
| 90 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 90 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 91 const CreateAdvertisementCallback& callback, | 91 const CreateAdvertisementCallback& callback, |
| 92 const CreateAdvertisementErrorCallback& error_callback) override; | 92 const AdvertisementErrorCallback& error_callback) override; |
| 93 BluetoothLocalGattService* GetGattService( | 93 BluetoothLocalGattService* GetGattService( |
| 94 const std::string& identifier) const override; | 94 const std::string& identifier) const override; |
| 95 | 95 |
| 96 // BluetoothDiscoveryManagerMac::Observer overrides: | 96 // BluetoothDiscoveryManagerMac::Observer overrides: |
| 97 void ClassicDeviceFound(IOBluetoothDevice* device) override; | 97 void ClassicDeviceFound(IOBluetoothDevice* device) override; |
| 98 void ClassicDiscoveryStopped(bool unexpected) override; | 98 void ClassicDiscoveryStopped(bool unexpected) override; |
| 99 | 99 |
| 100 // Registers that a new |device| has connected to the local host. | 100 // Registers that a new |device| has connected to the local host. |
| 101 void DeviceConnected(IOBluetoothDevice* device); | 101 void DeviceConnected(IOBluetoothDevice* device); |
| 102 | 102 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 205 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
| 206 | 206 |
| 207 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 207 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
| 208 | 208 |
| 209 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 209 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace device | 212 } // namespace device |
| 213 | 213 |
| 214 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 214 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| OLD | NEW |