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 #include "device/bluetooth/bluetooth_adapter_win.h" | 5 #include "device/bluetooth/bluetooth_adapter_win.h" |
6 | 6 |
7 #include <hash_set> | 7 #include <hash_set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 void BluetoothAdapterWin::RegisterAudioSink( | 177 void BluetoothAdapterWin::RegisterAudioSink( |
178 const BluetoothAudioSink::Options& options, | 178 const BluetoothAudioSink::Options& options, |
179 const AcquiredCallback& callback, | 179 const AcquiredCallback& callback, |
180 const BluetoothAudioSink::ErrorCallback& error_callback) { | 180 const BluetoothAudioSink::ErrorCallback& error_callback) { |
181 NOTIMPLEMENTED(); | 181 NOTIMPLEMENTED(); |
182 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); | 182 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); |
183 } | 183 } |
184 | 184 |
| 185 void BluetoothAdapterWin::RegisterAdvertisement( |
| 186 scoped_ptr<BluetoothAdvertisement::Data> advertisement_data, |
| 187 const CreateAdvertisementCallback& callback, |
| 188 const CreateAdvertisementErrorCallback& error_callback) { |
| 189 NOTIMPLEMENTED(); |
| 190 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); |
| 191 } |
| 192 |
185 void BluetoothAdapterWin::RemovePairingDelegateInternal( | 193 void BluetoothAdapterWin::RemovePairingDelegateInternal( |
186 BluetoothDevice::PairingDelegate* pairing_delegate) { | 194 BluetoothDevice::PairingDelegate* pairing_delegate) { |
187 } | 195 } |
188 | 196 |
189 void BluetoothAdapterWin::AdapterStateChanged( | 197 void BluetoothAdapterWin::AdapterStateChanged( |
190 const BluetoothTaskManagerWin::AdapterState& state) { | 198 const BluetoothTaskManagerWin::AdapterState& state) { |
191 DCHECK(thread_checker_.CalledOnValidThread()); | 199 DCHECK(thread_checker_.CalledOnValidThread()); |
192 name_ = state.name; | 200 name_ = state.name; |
193 bool was_present = IsPresent(); | 201 bool was_present = IsPresent(); |
194 bool is_present = !state.address.empty(); | 202 bool is_present = !state.address.empty(); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); | 366 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); |
359 on_stop_discovery_callbacks_.clear(); | 367 on_stop_discovery_callbacks_.clear(); |
360 return; | 368 return; |
361 } | 369 } |
362 | 370 |
363 discovery_status_ = DISCOVERY_STOPPING; | 371 discovery_status_ = DISCOVERY_STOPPING; |
364 task_manager_->PostStopDiscoveryTask(); | 372 task_manager_->PostStopDiscoveryTask(); |
365 } | 373 } |
366 | 374 |
367 } // namespace device | 375 } // namespace device |
OLD | NEW |