| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_adapter_chromeos.h" | 5 #include "device/bluetooth/bluetooth_adapter_chromeos.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 if (!IsPresent()) | 224 if (!IsPresent()) |
| 225 return false; | 225 return false; |
| 226 | 226 |
| 227 BluetoothAdapterClient::Properties* properties = | 227 BluetoothAdapterClient::Properties* properties = |
| 228 DBusThreadManager::Get()->GetBluetoothAdapterClient()-> | 228 DBusThreadManager::Get()->GetBluetoothAdapterClient()-> |
| 229 GetProperties(object_path_); | 229 GetProperties(object_path_); |
| 230 | 230 |
| 231 return properties->discovering.value(); | 231 return properties->discovering.value(); |
| 232 } | 232 } |
| 233 | 233 |
| 234 void BluetoothAdapterChromeOS::ReadLocalOutOfBandPairingData( | |
| 235 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback, | |
| 236 const ErrorCallback& error_callback) { | |
| 237 error_callback.Run(); | |
| 238 } | |
| 239 | |
| 240 void BluetoothAdapterChromeOS::CreateRfcommService( | 234 void BluetoothAdapterChromeOS::CreateRfcommService( |
| 241 const BluetoothUUID& uuid, | 235 const BluetoothUUID& uuid, |
| 242 int channel, | 236 int channel, |
| 243 bool insecure, | 237 bool insecure, |
| 244 const CreateServiceCallback& callback, | 238 const CreateServiceCallback& callback, |
| 245 const CreateServiceErrorCallback& error_callback) { | 239 const CreateServiceErrorCallback& error_callback) { |
| 246 VLOG(1) << object_path_.value() << ": Creating RFCOMM service: " | 240 VLOG(1) << object_path_.value() << ": Creating RFCOMM service: " |
| 247 << uuid.canonical_value(); | 241 << uuid.canonical_value(); |
| 248 scoped_refptr<BluetoothSocketChromeOS> socket = | 242 scoped_refptr<BluetoothSocketChromeOS> socket = |
| 249 BluetoothSocketChromeOS::CreateBluetoothSocket( | 243 BluetoothSocketChromeOS::CreateBluetoothSocket( |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 | 934 |
| 941 // If the queued request resulted in a pending call, then let it | 935 // If the queued request resulted in a pending call, then let it |
| 942 // asynchonously process the remaining queued requests once the pending | 936 // asynchonously process the remaining queued requests once the pending |
| 943 // call returns. | 937 // call returns. |
| 944 if (discovery_request_pending_) | 938 if (discovery_request_pending_) |
| 945 return; | 939 return; |
| 946 } | 940 } |
| 947 } | 941 } |
| 948 | 942 |
| 949 } // namespace chromeos | 943 } // namespace chromeos |
| OLD | NEW |