| 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_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDE
R_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 const dbus::ObjectPath& object_path() const override; | 53 const dbus::ObjectPath& object_path() const override; |
| 54 const std::string& uuid() const { return uuid_; } | 54 const std::string& uuid() const { return uuid_; } |
| 55 const dbus::ObjectPath& service_path() const { return service_path_; } | 55 const dbus::ObjectPath& service_path() const { return service_path_; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // D-Bus object path of the fake GATT characteristic. | 58 // D-Bus object path of the fake GATT characteristic. |
| 59 dbus::ObjectPath object_path_; | 59 dbus::ObjectPath object_path_; |
| 60 | 60 |
| 61 // 128-bit GATT characteristic UUID. | 61 // 128-bit GATT characteristic UUID. |
| 62 std::string uuid_; | 62 const std::string uuid_; |
| 63 |
| 64 // Properties for this characteristic. |
| 65 const std::vector<std::string> flags_; |
| 63 | 66 |
| 64 // Object path of the service that this characteristic belongs to. | 67 // Object path of the service that this characteristic belongs to. |
| 65 dbus::ObjectPath service_path_; | 68 const dbus::ObjectPath service_path_; |
| 66 | 69 |
| 67 // The delegate that method calls are passed on to. | 70 // The delegate that method calls are passed on to. |
| 68 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate_; | 71 std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate_; |
| 69 | 72 |
| 70 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); | 73 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace bluez | 76 } // namespace bluez |
| 74 | 77 |
| 75 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROV
IDER_H_ | 78 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROV
IDER_H_ |
| OLD | NEW |