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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const CreateServiceCallback& callback, | 78 const CreateServiceCallback& callback, |
79 const CreateServiceErrorCallback& error_callback) override; | 79 const CreateServiceErrorCallback& error_callback) override; |
80 void RegisterAudioSink( | 80 void RegisterAudioSink( |
81 const BluetoothAudioSink::Options& options, | 81 const BluetoothAudioSink::Options& options, |
82 const AcquiredCallback& callback, | 82 const AcquiredCallback& callback, |
83 const BluetoothAudioSink::ErrorCallback& error_callback) override; | 83 const BluetoothAudioSink::ErrorCallback& error_callback) override; |
84 void RegisterAdvertisement( | 84 void RegisterAdvertisement( |
85 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 85 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
86 const CreateAdvertisementCallback& callback, | 86 const CreateAdvertisementCallback& callback, |
87 const CreateAdvertisementErrorCallback& error_callback) override; | 87 const CreateAdvertisementErrorCallback& error_callback) override; |
| 88 BluetoothLocalGattService* GetGattService( |
| 89 const std::string& identifier) const override; |
88 | 90 |
89 // BluetoothDiscoveryManagerMac::Observer overrides: | 91 // BluetoothDiscoveryManagerMac::Observer overrides: |
90 void ClassicDeviceFound(IOBluetoothDevice* device) override; | 92 void ClassicDeviceFound(IOBluetoothDevice* device) override; |
91 void ClassicDiscoveryStopped(bool unexpected) override; | 93 void ClassicDiscoveryStopped(bool unexpected) override; |
92 | 94 |
93 // Registers that a new |device| has connected to the local host. | 95 // Registers that a new |device| has connected to the local host. |
94 void DeviceConnected(IOBluetoothDevice* device); | 96 void DeviceConnected(IOBluetoothDevice* device); |
95 | 97 |
96 // We only use CoreBluetooth when OS X >= 10.10. This because the | 98 // We only use CoreBluetooth when OS X >= 10.10. This because the |
97 // CBCentralManager destructor was found to crash on the mac_chromium_rel_ng | 99 // CBCentralManager destructor was found to crash on the mac_chromium_rel_ng |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 202 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
201 | 203 |
202 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 204 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
203 | 205 |
204 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 206 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
205 }; | 207 }; |
206 | 208 |
207 } // namespace device | 209 } // namespace device |
208 | 210 |
209 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 211 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
OLD | NEW |