OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
7 | 7 |
8 #include <hash_set> | 8 #include <hash_set> |
9 #include <set> | 9 #include <set> |
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 // BluetoothTaskManagerWin::Observer override | 79 // BluetoothTaskManagerWin::Observer override |
76 void AdapterStateChanged( | 80 void AdapterStateChanged( |
77 const BluetoothTaskManagerWin::AdapterState& state) override; | 81 const BluetoothTaskManagerWin::AdapterState& state) override; |
78 void DiscoveryStarted(bool success) override; | 82 void DiscoveryStarted(bool success) override; |
79 void DiscoveryStopped() override; | 83 void DiscoveryStopped() override; |
80 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>& | 84 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>& |
81 devices) override; | 85 devices) override; |
82 | 86 |
83 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const { | 87 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner() const { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // NOTE: This should remain the last member so it'll be destroyed and | 150 // NOTE: This should remain the last member so it'll be destroyed and |
147 // invalidate its weak pointers before any other members are destroyed. | 151 // invalidate its weak pointers before any other members are destroyed. |
148 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 152 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
149 | 153 |
150 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 154 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
151 }; | 155 }; |
152 | 156 |
153 } // namespace device | 157 } // namespace device |
154 | 158 |
155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 159 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
OLD | NEW |