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

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

Issue 1974633002: Implement DBus changes needed for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/dbus/bluetooth_gatt_application_service_provider.h
diff --git a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.h b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.h
index 3c0e1cef4eb982c84e8d01434ddef71ff7653ea4..adfff73eeb2de5b4c8e62c7996ca99363b7ae595 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_application_service_provider.h
@@ -30,16 +30,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattApplicationServiceProvider {
// Creates individual service providers for all the attributes managed by the
// object manager interface implemented by this application service provider.
- static void CreateAttributeServiceProviders(
+ void CreateAttributeServiceProviders(
dbus::Bus* bus,
const std::map<dbus::ObjectPath, BluetoothLocalGattServiceBlueZ*>&
- services,
- std::vector<std::unique_ptr<BluetoothGattServiceServiceProvider>>*
- service_providers,
- std::vector<std::unique_ptr<BluetoothGattCharacteristicServiceProvider>>*
- characteristic_providers,
- std::vector<std::unique_ptr<BluetoothGattDescriptorServiceProvider>>*
- descriptor_providers);
+ services);
// 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|
@@ -53,9 +47,23 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattApplicationServiceProvider {
const std::map<dbus::ObjectPath, BluetoothLocalGattServiceBlueZ*>&
services);
+ void SendValueChanged(const dbus::ObjectPath& characteristic_path,
+ const std::vector<uint8_t>& value);
+
protected:
BluetoothGattApplicationServiceProvider();
+ // List of GATT Service service providers managed by this object manager.
+ std::vector<std::unique_ptr<BluetoothGattServiceServiceProvider>>
+ service_providers_;
+ // List of GATT Characteristic service providers managed by this object
+ // manager.
+ std::vector<std::unique_ptr<BluetoothGattCharacteristicServiceProvider>>
+ characteristic_providers_;
+ // List of GATT Descriptor service providers managed by this object manager.
+ std::vector<std::unique_ptr<BluetoothGattDescriptorServiceProvider>>
+ descriptor_providers_;
+
private:
DISALLOW_COPY_AND_ASSIGN(BluetoothGattApplicationServiceProvider);
};
« no previous file with comments | « no previous file | device/bluetooth/dbus/bluetooth_gatt_application_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698