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_device_chromeos.h" | 5 #include "device/bluetooth/bluetooth_device_chromeos.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 base::Bind(&BluetoothDeviceChromeOS::GetServiceRecordsForConnectCallback, | 316 base::Bind(&BluetoothDeviceChromeOS::GetServiceRecordsForConnectCallback, |
317 weak_ptr_factory_.GetWeakPtr(), | 317 weak_ptr_factory_.GetWeakPtr(), |
318 service_uuid, | 318 service_uuid, |
319 callback), | 319 callback), |
320 base::Bind( | 320 base::Bind( |
321 &BluetoothDeviceChromeOS::GetServiceRecordsForConnectErrorCallback, | 321 &BluetoothDeviceChromeOS::GetServiceRecordsForConnectErrorCallback, |
322 weak_ptr_factory_.GetWeakPtr(), | 322 weak_ptr_factory_.GetWeakPtr(), |
323 callback)); | 323 callback)); |
324 } | 324 } |
325 | 325 |
| 326 void BluetoothDeviceChromeOS::ConnectToProfile( |
| 327 device::BluetoothProfile* profile, |
| 328 const ErrorCallback& error_callback) { |
| 329 // TODO(keybuk): implement |
| 330 } |
| 331 |
326 void BluetoothDeviceChromeOS::SetOutOfBandPairingData( | 332 void BluetoothDeviceChromeOS::SetOutOfBandPairingData( |
327 const BluetoothOutOfBandPairingData& data, | 333 const BluetoothOutOfBandPairingData& data, |
328 const base::Closure& callback, | 334 const base::Closure& callback, |
329 const ErrorCallback& error_callback) { | 335 const ErrorCallback& error_callback) { |
330 DBusThreadManager::Get()->GetBluetoothOutOfBandClient()-> | 336 DBusThreadManager::Get()->GetBluetoothOutOfBandClient()-> |
331 AddRemoteData( | 337 AddRemoteData( |
332 object_path_, | 338 object_path_, |
333 address_, | 339 address_, |
334 data, | 340 data, |
335 base::Bind(&BluetoothDeviceChromeOS::OnRemoteDataCallback, | 341 base::Bind(&BluetoothDeviceChromeOS::OnRemoteDataCallback, |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 } | 854 } |
849 | 855 |
850 | 856 |
851 // static | 857 // static |
852 BluetoothDeviceChromeOS* BluetoothDeviceChromeOS::Create( | 858 BluetoothDeviceChromeOS* BluetoothDeviceChromeOS::Create( |
853 BluetoothAdapterChromeOS* adapter) { | 859 BluetoothAdapterChromeOS* adapter) { |
854 return new BluetoothDeviceChromeOS(adapter); | 860 return new BluetoothDeviceChromeOS(adapter); |
855 } | 861 } |
856 | 862 |
857 } // namespace chromeos | 863 } // namespace chromeos |
OLD | NEW |