Chromium Code Reviews| 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 #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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 // |callback| and |error_callback| are the callbacks passed to SetPowered(). | 109 // |callback| and |error_callback| are the callbacks passed to SetPowered(). |
| 110 void OnSetPowered(const base::Closure& callback, | 110 void OnSetPowered(const base::Closure& callback, |
| 111 const ErrorCallback& error_callback, | 111 const ErrorCallback& error_callback, |
| 112 bool success); | 112 bool success); |
| 113 | 113 |
| 114 // Updates the tracked state of the adapter's radio power to |powered| | 114 // Updates the tracked state of the adapter's radio power to |powered| |
| 115 // and notifies observers. Called on receipt of a property changed signal, | 115 // and notifies observers. Called on receipt of a property changed signal, |
| 116 // and directly using values obtained from properties. | 116 // and directly using values obtained from properties. |
| 117 void PoweredChanged(bool powered); | 117 void PoweredChanged(bool powered); |
| 118 | 118 |
| 119 // Notifies the observers of a change in the |device| device. Used to signal | |
| 120 // changes initiated from the BluetoothDeviceChromeOS itself. | |
| 121 void DeviceChanged(BluetoothDeviceChromeOS* device); | |
| 122 | |
|
keybuk
2013/04/18 00:52:24
Since this is called externally, perhaps NotifyDev
deymo
2013/04/18 01:38:40
Done.
| |
| 119 // Called by BluetoothAdapterClient in response to the method call sent | 123 // Called by BluetoothAdapterClient in response to the method call sent |
| 120 // by StartDiscovering(), |callback| and |error_callback| are the callbacks | 124 // by StartDiscovering(), |callback| and |error_callback| are the callbacks |
| 121 // provided to that method. | 125 // provided to that method. |
| 122 void OnStartDiscovery(const base::Closure& callback, | 126 void OnStartDiscovery(const base::Closure& callback, |
| 123 const ErrorCallback& error_callback, | 127 const ErrorCallback& error_callback, |
| 124 const dbus::ObjectPath& adapter_path, | 128 const dbus::ObjectPath& adapter_path, |
| 125 bool success); | 129 bool success); |
| 126 | 130 |
| 127 // Called by BluetoothAdapterClient in response to the method call sent | 131 // Called by BluetoothAdapterClient in response to the method call sent |
| 128 // by StopDiscovering(), |callback| and |error_callback| are the callbacks | 132 // by StopDiscovering(), |callback| and |error_callback| are the callbacks |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 // Note: This should remain the last member so it'll be destroyed and | 239 // Note: This should remain the last member so it'll be destroyed and |
| 236 // invalidate its weak pointers before any other members are destroyed. | 240 // invalidate its weak pointers before any other members are destroyed. |
| 237 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 241 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
| 238 | 242 |
| 239 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 243 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
| 240 }; | 244 }; |
| 241 | 245 |
| 242 } // namespace chromeos | 246 } // namespace chromeos |
| 243 | 247 |
| 244 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 248 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| OLD | NEW |