| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // successfully registered, |success_callback| will be called with a pointer | 131 // successfully registered, |success_callback| will be called with a pointer |
| 132 // to the profile which is managed by BluetoothAdapterChromeOS. On failure, | 132 // to the profile which is managed by BluetoothAdapterChromeOS. On failure, |
| 133 // |error_callback| will be called. | 133 // |error_callback| will be called. |
| 134 void UseProfile(const device::BluetoothUUID& uuid, | 134 void UseProfile(const device::BluetoothUUID& uuid, |
| 135 const dbus::ObjectPath& device_path, | 135 const dbus::ObjectPath& device_path, |
| 136 const BluetoothProfileManagerClient::Options& options, | 136 const BluetoothProfileManagerClient::Options& options, |
| 137 BluetoothProfileServiceProvider::Delegate* delegate, | 137 BluetoothProfileServiceProvider::Delegate* delegate, |
| 138 const ProfileRegisteredCallback& success_callback, | 138 const ProfileRegisteredCallback& success_callback, |
| 139 const ErrorCompletionCallback& error_callback); | 139 const ErrorCompletionCallback& error_callback); |
| 140 | 140 |
| 141 // Releases the profile associated with |uuid| | 141 // Removes references to the profile associated with |uuid| |
| 142 void ReleaseProfile(const device::BluetoothUUID& uuid); | 142 void RemoveProfile(const device::BluetoothUUID& uuid); |
| 143 | 143 |
| 144 protected: | 144 protected: |
| 145 // BluetoothAdapter: | 145 // BluetoothAdapter: |
| 146 void RemovePairingDelegateInternal( | 146 void RemovePairingDelegateInternal( |
| 147 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; | 147 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 friend class base::DeleteHelper<BluetoothAdapterChromeOS>; | 150 friend class base::DeleteHelper<BluetoothAdapterChromeOS>; |
| 151 friend class BluetoothChromeOSTest; | 151 friend class BluetoothChromeOSTest; |
| 152 | 152 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // 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 |
| 330 // invalidate its weak pointers before any other members are destroyed. | 330 // invalidate its weak pointers before any other members are destroyed. |
| 331 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 331 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
| 332 | 332 |
| 333 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 333 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
| 334 }; | 334 }; |
| 335 | 335 |
| 336 } // namespace chromeos | 336 } // namespace chromeos |
| 337 | 337 |
| 338 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 338 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| OLD | NEW |