| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 num_discovery_listeners_ = 0; | 154 num_discovery_listeners_ = 0; |
| 155 on_stop_discovery_callbacks_.clear(); | 155 on_stop_discovery_callbacks_.clear(); |
| 156 if (was_discovering) | 156 if (was_discovering) |
| 157 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, | 157 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, |
| 158 AdapterDiscoveringChanged(this, false)); | 158 AdapterDiscoveringChanged(this, false)); |
| 159 | 159 |
| 160 // If there are start discovery requests, post the start discovery again. | 160 // If there are start discovery requests, post the start discovery again. |
| 161 MaybePostStartDiscoveryTask(); | 161 MaybePostStartDiscoveryTask(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void BluetoothAdapterWin::ReadLocalOutOfBandPairingData( | |
| 165 const BluetoothOutOfBandPairingDataCallback& callback, | |
| 166 const ErrorCallback& error_callback) { | |
| 167 NOTIMPLEMENTED(); | |
| 168 } | |
| 169 | |
| 170 void BluetoothAdapterWin::CreateRfcommService( | 164 void BluetoothAdapterWin::CreateRfcommService( |
| 171 const BluetoothUUID& uuid, | 165 const BluetoothUUID& uuid, |
| 172 int channel, | 166 int channel, |
| 173 bool insecure, | 167 bool insecure, |
| 174 const CreateServiceCallback& callback, | 168 const CreateServiceCallback& callback, |
| 175 const CreateServiceErrorCallback& error_callback) { | 169 const CreateServiceErrorCallback& error_callback) { |
| 176 // TODO(keybuk): implement. | 170 // TODO(keybuk): implement. |
| 177 NOTIMPLEMENTED(); | 171 NOTIMPLEMENTED(); |
| 178 } | 172 } |
| 179 | 173 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); | 303 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); |
| 310 on_stop_discovery_callbacks_.clear(); | 304 on_stop_discovery_callbacks_.clear(); |
| 311 return; | 305 return; |
| 312 } | 306 } |
| 313 | 307 |
| 314 discovery_status_ = DISCOVERY_STOPPING; | 308 discovery_status_ = DISCOVERY_STOPPING; |
| 315 task_manager_->PostStopDiscoveryTask(); | 309 task_manager_->PostStopDiscoveryTask(); |
| 316 } | 310 } |
| 317 | 311 |
| 318 } // namespace device | 312 } // namespace device |
| OLD | NEW |