OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_device_experimental_chromeos.h" | 5 #include "device/bluetooth/bluetooth_device_experimental_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chromeos/dbus/dbus_thread_manager.h" | 8 #include "chromeos/dbus/dbus_thread_manager.h" |
9 #include "chromeos/dbus/experimental_bluetooth_adapter_client.h" | 9 #include "chromeos/dbus/experimental_bluetooth_adapter_client.h" |
10 #include "chromeos/dbus/experimental_bluetooth_agent_manager_client.h" | 10 #include "chromeos/dbus/experimental_bluetooth_agent_manager_client.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 error_callback)); | 250 error_callback)); |
251 } | 251 } |
252 | 252 |
253 void BluetoothDeviceExperimentalChromeOS::ConnectToService( | 253 void BluetoothDeviceExperimentalChromeOS::ConnectToService( |
254 const std::string& service_uuid, | 254 const std::string& service_uuid, |
255 const SocketCallback& callback) { | 255 const SocketCallback& callback) { |
256 // TODO(keybuk): implement | 256 // TODO(keybuk): implement |
257 callback.Run(scoped_refptr<device::BluetoothSocket>()); | 257 callback.Run(scoped_refptr<device::BluetoothSocket>()); |
258 } | 258 } |
259 | 259 |
| 260 void BluetoothDeviceExperimentalChromeOS::ConnectToProfile( |
| 261 device::BluetoothProfile* profile, |
| 262 const ErrorCallback& error_callback) { |
| 263 // TODO(keybuk): implement |
| 264 error_callback.Run(); |
| 265 } |
| 266 |
260 void BluetoothDeviceExperimentalChromeOS::SetOutOfBandPairingData( | 267 void BluetoothDeviceExperimentalChromeOS::SetOutOfBandPairingData( |
261 const device::BluetoothOutOfBandPairingData& data, | 268 const device::BluetoothOutOfBandPairingData& data, |
262 const base::Closure& callback, | 269 const base::Closure& callback, |
263 const ErrorCallback& error_callback) { | 270 const ErrorCallback& error_callback) { |
264 // TODO(keybuk): implement | 271 // TODO(keybuk): implement |
265 error_callback.Run(); | 272 error_callback.Run(); |
266 } | 273 } |
267 | 274 |
268 void BluetoothDeviceExperimentalChromeOS::ClearOutOfBandPairingData( | 275 void BluetoothDeviceExperimentalChromeOS::ClearOutOfBandPairingData( |
269 const base::Closure& callback, | 276 const base::Closure& callback, |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 if (!confirmation_callback_.is_null()) { | 612 if (!confirmation_callback_.is_null()) { |
606 confirmation_callback_.Run(status); | 613 confirmation_callback_.Run(status); |
607 confirmation_callback_.Reset(); | 614 confirmation_callback_.Reset(); |
608 callback_run = true; | 615 callback_run = true; |
609 } | 616 } |
610 | 617 |
611 return callback_run; | 618 return callback_run; |
612 } | 619 } |
613 | 620 |
614 } // namespace chromeos | 621 } // namespace chromeos |
OLD | NEW |