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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/mac/scoped_nsobject.h" | 15 #include "base/mac/scoped_nsobject.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "device/bluetooth/bluetooth_adapter.h" | 20 #include "device/bluetooth/bluetooth_adapter.h" |
21 #include "device/bluetooth/bluetooth_audio_sink.h" | |
22 #include "device/bluetooth/bluetooth_discovery_manager_mac.h" | 21 #include "device/bluetooth/bluetooth_discovery_manager_mac.h" |
23 #include "device/bluetooth/bluetooth_export.h" | 22 #include "device/bluetooth/bluetooth_export.h" |
24 #include "device/bluetooth/bluetooth_low_energy_device_mac.h" | 23 #include "device/bluetooth/bluetooth_low_energy_device_mac.h" |
25 #include "device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h" | 24 #include "device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h" |
26 #include "device/bluetooth/bluetooth_uuid.h" | 25 #include "device/bluetooth/bluetooth_uuid.h" |
27 | 26 |
28 @class CBUUID; | 27 @class CBUUID; |
29 @class IOBluetoothDevice; | 28 @class IOBluetoothDevice; |
30 @class NSArray; | 29 @class NSArray; |
31 @class NSDate; | 30 @class NSDate; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void CreateRfcommService( | 74 void CreateRfcommService( |
76 const BluetoothUUID& uuid, | 75 const BluetoothUUID& uuid, |
77 const ServiceOptions& options, | 76 const ServiceOptions& options, |
78 const CreateServiceCallback& callback, | 77 const CreateServiceCallback& callback, |
79 const CreateServiceErrorCallback& error_callback) override; | 78 const CreateServiceErrorCallback& error_callback) override; |
80 void CreateL2capService( | 79 void CreateL2capService( |
81 const BluetoothUUID& uuid, | 80 const BluetoothUUID& uuid, |
82 const ServiceOptions& options, | 81 const ServiceOptions& options, |
83 const CreateServiceCallback& callback, | 82 const CreateServiceCallback& callback, |
84 const CreateServiceErrorCallback& error_callback) override; | 83 const CreateServiceErrorCallback& error_callback) override; |
85 void RegisterAudioSink( | |
86 const BluetoothAudioSink::Options& options, | |
87 const AcquiredCallback& callback, | |
88 const BluetoothAudioSink::ErrorCallback& error_callback) override; | |
89 void RegisterAdvertisement( | 84 void RegisterAdvertisement( |
90 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 85 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
91 const CreateAdvertisementCallback& callback, | 86 const CreateAdvertisementCallback& callback, |
92 const AdvertisementErrorCallback& error_callback) override; | 87 const AdvertisementErrorCallback& error_callback) override; |
93 BluetoothLocalGattService* GetGattService( | 88 BluetoothLocalGattService* GetGattService( |
94 const std::string& identifier) const override; | 89 const std::string& identifier) const override; |
95 | 90 |
96 // BluetoothDiscoveryManagerMac::Observer overrides: | 91 // BluetoothDiscoveryManagerMac::Observer overrides: |
97 void ClassicDeviceFound(IOBluetoothDevice* device) override; | 92 void ClassicDeviceFound(IOBluetoothDevice* device) override; |
98 void ClassicDiscoveryStopped(bool unexpected) override; | 93 void ClassicDiscoveryStopped(bool unexpected) override; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 200 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
206 | 201 |
207 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 202 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
208 | 203 |
209 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 204 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
210 }; | 205 }; |
211 | 206 |
212 } // namespace device | 207 } // namespace device |
213 | 208 |
214 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 209 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
OLD | NEW |