| 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void OnRegisterAgent(); | 201 void OnRegisterAgent(); |
| 202 void OnRegisterAgentError(const std::string& error_name, | 202 void OnRegisterAgentError(const std::string& error_name, |
| 203 const std::string& error_message); | 203 const std::string& error_message); |
| 204 | 204 |
| 205 // Called by dbus:: on completion of the D-Bus method call to request that | 205 // Called by dbus:: on completion of the D-Bus method call to request that |
| 206 // the pairing agent be made the default. | 206 // the pairing agent be made the default. |
| 207 void OnRequestDefaultAgent(); | 207 void OnRequestDefaultAgent(); |
| 208 void OnRequestDefaultAgentError(const std::string& error_name, | 208 void OnRequestDefaultAgentError(const std::string& error_name, |
| 209 const std::string& error_message); | 209 const std::string& error_message); |
| 210 | 210 |
| 211 // Called by BluetoothAudioSinkChromeOS on completion of registering an audio |
| 212 // sink. |
| 213 void OnRegisterAudioSink( |
| 214 const device::BluetoothAdapter::AcquiredCallback& callback, |
| 215 scoped_refptr<device::BluetoothAudioSink> audio_sink); |
| 216 |
| 211 // Internal method to obtain a BluetoothPairingChromeOS object for the device | 217 // Internal method to obtain a BluetoothPairingChromeOS object for the device |
| 212 // with path |object_path|. Returns the existing pairing object if the device | 218 // with path |object_path|. Returns the existing pairing object if the device |
| 213 // already has one (usually an outgoing connection in progress) or a new | 219 // already has one (usually an outgoing connection in progress) or a new |
| 214 // pairing object with the default pairing delegate if not. If no default | 220 // pairing object with the default pairing delegate if not. If no default |
| 215 // pairing object exists, NULL will be returned. | 221 // pairing object exists, NULL will be returned. |
| 216 BluetoothPairingChromeOS* GetPairing(const dbus::ObjectPath& object_path); | 222 BluetoothPairingChromeOS* GetPairing(const dbus::ObjectPath& object_path); |
| 217 | 223 |
| 218 // Set the tracked adapter to the one in |object_path|, this object will | 224 // Set the tracked adapter to the one in |object_path|, this object will |
| 219 // subsequently operate on that adapter until it is removed. | 225 // subsequently operate on that adapter until it is removed. |
| 220 void SetAdapter(const dbus::ObjectPath& object_path); | 226 void SetAdapter(const dbus::ObjectPath& object_path); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // Note: This should remain the last member so it'll be destroyed and | 329 // Note: This should remain the last member so it'll be destroyed and |
| 324 // invalidate its weak pointers before any other members are destroyed. | 330 // invalidate its weak pointers before any other members are destroyed. |
| 325 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 331 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
| 326 | 332 |
| 327 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 333 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
| 328 }; | 334 }; |
| 329 | 335 |
| 330 } // namespace chromeos | 336 } // namespace chromeos |
| 331 | 337 |
| 332 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 338 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| OLD | NEW |