| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 // Locates the device object by object path (the devices map and | 113 // Locates the device object by object path (the devices map and |
| 114 // BluetoothDevice methods are by address). | 114 // BluetoothDevice methods are by address). |
| 115 BluetoothDeviceChromeOS* GetDeviceWithPath( | 115 BluetoothDeviceChromeOS* GetDeviceWithPath( |
| 116 const dbus::ObjectPath& object_path); | 116 const dbus::ObjectPath& object_path); |
| 117 | 117 |
| 118 // Announces to observers a change in device state that is not reflected by | 118 // Announces to observers a change in device state that is not reflected by |
| 119 // its D-Bus properties. |device| is owned by the caller and cannot be NULL. | 119 // its D-Bus properties. |device| is owned by the caller and cannot be NULL. |
| 120 void NotifyDeviceChanged(BluetoothDeviceChromeOS* device); | 120 void NotifyDeviceChanged(BluetoothDeviceChromeOS* device); |
| 121 | 121 |
| 122 // Announce to observers a device address change. |
| 123 void NotifyDeviceAddressChanged(BluetoothDeviceChromeOS* device, |
| 124 const std::string& old_address); |
| 125 |
| 122 // The following methods are used to send various GATT observer events to | 126 // The following methods are used to send various GATT observer events to |
| 123 // observers. | 127 // observers. |
| 124 void NotifyGattServiceAdded(BluetoothRemoteGattServiceChromeOS* service); | 128 void NotifyGattServiceAdded(BluetoothRemoteGattServiceChromeOS* service); |
| 125 void NotifyGattServiceRemoved(BluetoothRemoteGattServiceChromeOS* service); | 129 void NotifyGattServiceRemoved(BluetoothRemoteGattServiceChromeOS* service); |
| 126 void NotifyGattServiceChanged(BluetoothRemoteGattServiceChromeOS* service); | 130 void NotifyGattServiceChanged(BluetoothRemoteGattServiceChromeOS* service); |
| 127 void NotifyGattDiscoveryComplete(BluetoothRemoteGattServiceChromeOS* service); | 131 void NotifyGattDiscoveryComplete(BluetoothRemoteGattServiceChromeOS* service); |
| 128 void NotifyGattCharacteristicAdded( | 132 void NotifyGattCharacteristicAdded( |
| 129 BluetoothRemoteGattCharacteristicChromeOS* characteristic); | 133 BluetoothRemoteGattCharacteristicChromeOS* characteristic); |
| 130 void NotifyGattCharacteristicRemoved( | 134 void NotifyGattCharacteristicRemoved( |
| 131 BluetoothRemoteGattCharacteristicChromeOS* characteristic); | 135 BluetoothRemoteGattCharacteristicChromeOS* characteristic); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // Note: This should remain the last member so it'll be destroyed and | 394 // Note: This should remain the last member so it'll be destroyed and |
| 391 // invalidate its weak pointers before any other members are destroyed. | 395 // invalidate its weak pointers before any other members are destroyed. |
| 392 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 396 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
| 393 | 397 |
| 394 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 398 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
| 395 }; | 399 }; |
| 396 | 400 |
| 397 } // namespace chromeos | 401 } // namespace chromeos |
| 398 | 402 |
| 399 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 403 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
| OLD | NEW |