| 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 | |
| 193 void BluetoothAdapterWin::RemovePairingDelegateInternal( | 185 void BluetoothAdapterWin::RemovePairingDelegateInternal( |
| 194 BluetoothDevice::PairingDelegate* pairing_delegate) { | 186 BluetoothDevice::PairingDelegate* pairing_delegate) { |
| 195 } | 187 } |
| 196 | 188 |
| 197 void BluetoothAdapterWin::AdapterStateChanged( | 189 void BluetoothAdapterWin::AdapterStateChanged( |
| 198 const BluetoothTaskManagerWin::AdapterState& state) { | 190 const BluetoothTaskManagerWin::AdapterState& state) { |
| 199 DCHECK(thread_checker_.CalledOnValidThread()); | 191 DCHECK(thread_checker_.CalledOnValidThread()); |
| 200 name_ = state.name; | 192 name_ = state.name; |
| 201 bool was_present = IsPresent(); | 193 bool was_present = IsPresent(); |
| 202 bool is_present = !state.address.empty(); | 194 bool is_present = !state.address.empty(); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); | 358 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); |
| 367 on_stop_discovery_callbacks_.clear(); | 359 on_stop_discovery_callbacks_.clear(); |
| 368 return; | 360 return; |
| 369 } | 361 } |
| 370 | 362 |
| 371 discovery_status_ = DISCOVERY_STOPPING; | 363 discovery_status_ = DISCOVERY_STOPPING; |
| 372 task_manager_->PostStopDiscoveryTask(); | 364 task_manager_->PostStopDiscoveryTask(); |
| 373 } | 365 } |
| 374 | 366 |
| 375 } // namespace device | 367 } // namespace device |
| OLD | NEW |