Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2327)

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h

Issue 1914893002: DBus changes for implementing local GATT attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_classes
Patch Set: test leak fix Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h
diff --git a/device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h b/device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h
index ba101ca773fbe3cba32523796bbc431c3a41afe3..db8090a6a3f4fff2fe5f9b0dbeb111a81baa380e 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "dbus/bus.h"
+#include "dbus/message.h"
#include "dbus/object_path.h"
#include "device/bluetooth/bluetooth_export.h"
@@ -29,6 +30,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattServiceServiceProvider {
public:
virtual ~BluetoothGattServiceServiceProvider();
+ // Writes an array of the service's properties into the provided writer.
+ virtual void WriteProperties(dbus::MessageWriter* writer) {}
+
+ virtual const dbus::ObjectPath& object_path() const = 0;
+
// Creates the instance where |bus| is the D-Bus bus connection to export the
// object onto, |object_path| is the object path that it should have, |uuid|
// is the 128-bit GATT service UUID, and |includes| are a list of object paths

Powered by Google App Engine
This is Rietveld 408576698