| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // BluetoothGattCharacteristicClient::Observer overrides. | 73 // BluetoothGattCharacteristicClient::Observer overrides. |
| 74 virtual void GattCharacteristicValueUpdated( | 74 virtual void GattCharacteristicValueUpdated( |
| 75 const dbus::ObjectPath& object_path, | 75 const dbus::ObjectPath& object_path, |
| 76 const std::vector<uint8>& value) OVERRIDE; | 76 const std::vector<uint8>& value) OVERRIDE; |
| 77 | 77 |
| 78 // BluetoothGattDescriptorClient::Observer overrides. | 78 // BluetoothGattDescriptorClient::Observer overrides. |
| 79 virtual void GattDescriptorAdded( | 79 virtual void GattDescriptorAdded( |
| 80 const dbus::ObjectPath& object_path) OVERRIDE; | 80 const dbus::ObjectPath& object_path) OVERRIDE; |
| 81 virtual void GattDescriptorRemoved( | 81 virtual void GattDescriptorRemoved( |
| 82 const dbus::ObjectPath& object_path) OVERRIDE; | 82 const dbus::ObjectPath& object_path) OVERRIDE; |
| 83 virtual void GattDescriptorPropertyChanged( | |
| 84 const dbus::ObjectPath& object_path, | |
| 85 const std::string& property_name) OVERRIDE; | |
| 86 | 83 |
| 87 // Called by dbus:: on successful completion of a request to read | 84 // Called by dbus:: on successful completion of a request to read |
| 88 // the characteristic value. | 85 // the characteristic value. |
| 89 void OnValueSuccess(const ValueCallback& callback, | 86 void OnValueSuccess(const ValueCallback& callback, |
| 90 const std::vector<uint8>& value); | 87 const std::vector<uint8>& value); |
| 91 | 88 |
| 92 // Called by dbus:: on unsuccessful completion of a request to read or write | 89 // Called by dbus:: on unsuccessful completion of a request to read or write |
| 93 // the characteristic value. | 90 // the characteristic value. |
| 94 void OnError(const ErrorCallback& error_callback, | 91 void OnError(const ErrorCallback& error_callback, |
| 95 const std::string& error_name, | 92 const std::string& error_name, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 117 // invalidate its weak pointers before any other members are destroyed. | 114 // invalidate its weak pointers before any other members are destroyed. |
| 118 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicChromeOS> | 115 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicChromeOS> |
| 119 weak_ptr_factory_; | 116 weak_ptr_factory_; |
| 120 | 117 |
| 121 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicChromeOS); | 118 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicChromeOS); |
| 122 }; | 119 }; |
| 123 | 120 |
| 124 } // namespace chromeos | 121 } // namespace chromeos |
| 125 | 122 |
| 126 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ | 123 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ |
| OLD | NEW |