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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 base::Bind(&BluetoothDeviceChromeOS::GetServiceRecordsForConnectCallback, | 318 base::Bind(&BluetoothDeviceChromeOS::GetServiceRecordsForConnectCallback, |
319 weak_ptr_factory_.GetWeakPtr(), | 319 weak_ptr_factory_.GetWeakPtr(), |
320 service_uuid, | 320 service_uuid, |
321 callback), | 321 callback), |
322 base::Bind( | 322 base::Bind( |
323 &BluetoothDeviceChromeOS::GetServiceRecordsForConnectErrorCallback, | 323 &BluetoothDeviceChromeOS::GetServiceRecordsForConnectErrorCallback, |
324 weak_ptr_factory_.GetWeakPtr(), | 324 weak_ptr_factory_.GetWeakPtr(), |
325 callback)); | 325 callback)); |
326 } | 326 } |
327 | 327 |
| 328 void BluetoothDeviceChromeOS::ConnectToProfile( |
| 329 device::BluetoothProfile* profile, |
| 330 const ErrorCallback& error_callback) { |
| 331 // TODO(keybuk): implement |
| 332 } |
| 333 |
328 void BluetoothDeviceChromeOS::SetOutOfBandPairingData( | 334 void BluetoothDeviceChromeOS::SetOutOfBandPairingData( |
329 const BluetoothOutOfBandPairingData& data, | 335 const BluetoothOutOfBandPairingData& data, |
330 const base::Closure& callback, | 336 const base::Closure& callback, |
331 const ErrorCallback& error_callback) { | 337 const ErrorCallback& error_callback) { |
332 DBusThreadManager::Get()->GetBluetoothOutOfBandClient()-> | 338 DBusThreadManager::Get()->GetBluetoothOutOfBandClient()-> |
333 AddRemoteData( | 339 AddRemoteData( |
334 object_path_, | 340 object_path_, |
335 address_, | 341 address_, |
336 data, | 342 data, |
337 base::Bind(&BluetoothDeviceChromeOS::OnRemoteDataCallback, | 343 base::Bind(&BluetoothDeviceChromeOS::OnRemoteDataCallback, |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 } | 862 } |
857 | 863 |
858 | 864 |
859 // static | 865 // static |
860 BluetoothDeviceChromeOS* BluetoothDeviceChromeOS::Create( | 866 BluetoothDeviceChromeOS* BluetoothDeviceChromeOS::Create( |
861 BluetoothAdapterChromeOS* adapter) { | 867 BluetoothAdapterChromeOS* adapter) { |
862 return new BluetoothDeviceChromeOS(adapter); | 868 return new BluetoothDeviceChromeOS(adapter); |
863 } | 869 } |
864 | 870 |
865 } // namespace chromeos | 871 } // namespace chromeos |
OLD | NEW |