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 <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 void BluetoothAdapterWin::CreateL2capService( | 180 void BluetoothAdapterWin::CreateL2capService( |
181 const BluetoothUUID& uuid, | 181 const BluetoothUUID& uuid, |
182 const ServiceOptions& options, | 182 const ServiceOptions& options, |
183 const CreateServiceCallback& callback, | 183 const CreateServiceCallback& callback, |
184 const CreateServiceErrorCallback& error_callback) { | 184 const CreateServiceErrorCallback& error_callback) { |
185 // TODO(keybuk): implement. | 185 // TODO(keybuk): implement. |
186 NOTIMPLEMENTED(); | 186 NOTIMPLEMENTED(); |
187 } | 187 } |
188 | 188 |
189 void BluetoothAdapterWin::RegisterAudioSink( | |
190 const BluetoothAudioSink::Options& options, | |
191 const AcquiredCallback& callback, | |
192 const BluetoothAudioSink::ErrorCallback& error_callback) { | |
193 NOTIMPLEMENTED(); | |
194 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); | |
195 } | |
196 | |
197 void BluetoothAdapterWin::RegisterAdvertisement( | 189 void BluetoothAdapterWin::RegisterAdvertisement( |
198 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, | 190 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, |
199 const CreateAdvertisementCallback& callback, | 191 const CreateAdvertisementCallback& callback, |
200 const AdvertisementErrorCallback& error_callback) { | 192 const AdvertisementErrorCallback& error_callback) { |
201 NOTIMPLEMENTED(); | 193 NOTIMPLEMENTED(); |
202 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); | 194 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); |
203 } | 195 } |
204 | 196 |
205 BluetoothLocalGattService* BluetoothAdapterWin::GetGattService( | 197 BluetoothLocalGattService* BluetoothAdapterWin::GetGattService( |
206 const std::string& identifier) const { | 198 const std::string& identifier) const { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); | 380 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); |
389 on_stop_discovery_callbacks_.clear(); | 381 on_stop_discovery_callbacks_.clear(); |
390 return; | 382 return; |
391 } | 383 } |
392 | 384 |
393 discovery_status_ = DISCOVERY_STOPPING; | 385 discovery_status_ = DISCOVERY_STOPPING; |
394 task_manager_->PostStopDiscoveryTask(); | 386 task_manager_->PostStopDiscoveryTask(); |
395 } | 387 } |
396 | 388 |
397 } // namespace device | 389 } // namespace device |
OLD | NEW |