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 26 matching lines...) Expand all Loading... |
37 // device::BluetoothGattCharacteristic overrides. | 37 // device::BluetoothGattCharacteristic overrides. |
38 virtual std::string GetIdentifier() const OVERRIDE; | 38 virtual std::string GetIdentifier() const OVERRIDE; |
39 virtual device::BluetoothUUID GetUUID() const OVERRIDE; | 39 virtual device::BluetoothUUID GetUUID() const OVERRIDE; |
40 virtual bool IsLocal() const OVERRIDE; | 40 virtual bool IsLocal() const OVERRIDE; |
41 virtual const std::vector<uint8>& GetValue() const OVERRIDE; | 41 virtual const std::vector<uint8>& GetValue() const OVERRIDE; |
42 virtual device::BluetoothGattService* GetService() const OVERRIDE; | 42 virtual device::BluetoothGattService* GetService() const OVERRIDE; |
43 virtual Properties GetProperties() const OVERRIDE; | 43 virtual Properties GetProperties() const OVERRIDE; |
44 virtual Permissions GetPermissions() const OVERRIDE; | 44 virtual Permissions GetPermissions() const OVERRIDE; |
45 virtual std::vector<device::BluetoothGattDescriptor*> | 45 virtual std::vector<device::BluetoothGattDescriptor*> |
46 GetDescriptors() const OVERRIDE; | 46 GetDescriptors() const OVERRIDE; |
| 47 virtual device::BluetoothGattDescriptor* GetDescriptor( |
| 48 const std::string& identifier) const OVERRIDE; |
47 virtual bool AddDescriptor( | 49 virtual bool AddDescriptor( |
48 device::BluetoothGattDescriptor* descriptor) OVERRIDE; | 50 device::BluetoothGattDescriptor* descriptor) OVERRIDE; |
49 virtual bool UpdateValue(const std::vector<uint8>& value) OVERRIDE; | 51 virtual bool UpdateValue(const std::vector<uint8>& value) OVERRIDE; |
50 virtual void ReadRemoteCharacteristic( | 52 virtual void ReadRemoteCharacteristic( |
51 const ValueCallback& callback, | 53 const ValueCallback& callback, |
52 const ErrorCallback& error_callback) OVERRIDE; | 54 const ErrorCallback& error_callback) OVERRIDE; |
53 virtual void WriteRemoteCharacteristic( | 55 virtual void WriteRemoteCharacteristic( |
54 const std::vector<uint8>& new_value, | 56 const std::vector<uint8>& new_value, |
55 const base::Closure& callback, | 57 const base::Closure& callback, |
56 const ErrorCallback& error_callback) OVERRIDE; | 58 const ErrorCallback& error_callback) OVERRIDE; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // invalidate its weak pointers before any other members are destroyed. | 107 // invalidate its weak pointers before any other members are destroyed. |
106 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicChromeOS> | 108 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicChromeOS> |
107 weak_ptr_factory_; | 109 weak_ptr_factory_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicChromeOS); | 111 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicChromeOS); |
110 }; | 112 }; |
111 | 113 |
112 } // namespace chromeos | 114 } // namespace chromeos |
113 | 115 |
114 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ | 116 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_CHROMEOS_H_ |
OLD | NEW |