| 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_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const std::string& uuid() const { return uuid_; } | 54 const std::string& uuid() const { return uuid_; } |
| 55 const dbus::ObjectPath& characteristic_path() const { | 55 const dbus::ObjectPath& characteristic_path() const { |
| 56 return characteristic_path_; | 56 return characteristic_path_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 // D-Bus object path of the fake GATT descriptor. | 60 // D-Bus object path of the fake GATT descriptor. |
| 61 dbus::ObjectPath object_path_; | 61 dbus::ObjectPath object_path_; |
| 62 | 62 |
| 63 // 128-bit GATT descriptor UUID. | 63 // 128-bit GATT descriptor UUID. |
| 64 std::string uuid_; | 64 const std::string uuid_; |
| 65 |
| 66 // Permissions for this descriptor. |
| 67 const std::vector<std::string> flags_; |
| 65 | 68 |
| 66 // Object path of the characteristic that this descriptor belongs to. | 69 // Object path of the characteristic that this descriptor belongs to. |
| 67 dbus::ObjectPath characteristic_path_; | 70 dbus::ObjectPath characteristic_path_; |
| 68 | 71 |
| 69 // The delegate that method calls are passed on to. | 72 // The delegate that method calls are passed on to. |
| 70 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate_; | 73 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate_; |
| 71 | 74 |
| 72 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorServiceProvider); | 75 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorServiceProvider); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace bluez | 78 } // namespace bluez |
| 76 | 79 |
| 77 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER
_H_ | 80 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_SERVICE_PROVIDER
_H_ |
| OLD | NEW |