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; | |
78 | 74 |
79 // BluetoothDiscoveryManagerMac::Observer overrides | 75 // BluetoothDiscoveryManagerMac::Observer overrides |
80 void DeviceFound(IOBluetoothDevice* device) override; | 76 void DeviceFound(IOBluetoothDevice* device) override; |
81 void DiscoveryStopped(bool unexpected) override; | 77 void DiscoveryStopped(bool unexpected) override; |
82 | 78 |
83 // Registers that a new |device| has connected to the local host. | 79 // Registers that a new |device| has connected to the local host. |
84 void DeviceConnected(IOBluetoothDevice* device); | 80 void DeviceConnected(IOBluetoothDevice* device); |
85 | 81 |
86 protected: | 82 protected: |
87 // BluetoothAdapter: | 83 // BluetoothAdapter: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 126 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
131 | 127 |
132 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 128 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
133 | 129 |
134 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 130 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
135 }; | 131 }; |
136 | 132 |
137 } // namespace device | 133 } // namespace device |
138 | 134 |
139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 135 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
OLD | NEW |