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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const CreateServiceErrorCallback& error_callback) override; | 64 const CreateServiceErrorCallback& error_callback) override; |
65 void CreateL2capService( | 65 void CreateL2capService( |
66 const BluetoothUUID& uuid, | 66 const BluetoothUUID& uuid, |
67 const ServiceOptions& options, | 67 const ServiceOptions& options, |
68 const CreateServiceCallback& callback, | 68 const CreateServiceCallback& callback, |
69 const CreateServiceErrorCallback& error_callback) override; | 69 const CreateServiceErrorCallback& error_callback) override; |
70 void RegisterAudioSink( | 70 void RegisterAudioSink( |
71 const BluetoothAudioSink::Options& options, | 71 const BluetoothAudioSink::Options& options, |
72 const AcquiredCallback& callback, | 72 const AcquiredCallback& callback, |
73 const BluetoothAudioSink::ErrorCallback& error_callback) override; | 73 const BluetoothAudioSink::ErrorCallback& error_callback) override; |
| 74 void RegisterAdvertisement( |
| 75 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 76 const CreateAdvertisementCallback& callback, |
| 77 const CreateAdvertisementErrorCallback& error_callback) override; |
74 | 78 |
75 // BluetoothDiscoveryManagerMac::Observer overrides | 79 // BluetoothDiscoveryManagerMac::Observer overrides |
76 void DeviceFound(IOBluetoothDevice* device) override; | 80 void DeviceFound(IOBluetoothDevice* device) override; |
77 void DiscoveryStopped(bool unexpected) override; | 81 void DiscoveryStopped(bool unexpected) override; |
78 | 82 |
79 // Registers that a new |device| has connected to the local host. | 83 // Registers that a new |device| has connected to the local host. |
80 void DeviceConnected(IOBluetoothDevice* device); | 84 void DeviceConnected(IOBluetoothDevice* device); |
81 | 85 |
82 protected: | 86 protected: |
83 // BluetoothAdapter: | 87 // BluetoothAdapter: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 130 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
127 | 131 |
128 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 132 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
129 | 133 |
130 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 134 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
131 }; | 135 }; |
132 | 136 |
133 } // namespace device | 137 } // namespace device |
134 | 138 |
135 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
OLD | NEW |