| 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_BLUETOOTH_GATT_SERVICE_SERVICE_PROVIDER_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_SERVICE_SERVICE_PROVIDER_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_SERVICE_SERVICE_PROVIDER_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_SERVICE_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Creates the instance where |bus| is the D-Bus bus connection to export the | 38 // Creates the instance where |bus| is the D-Bus bus connection to export the |
| 39 // object onto, |object_path| is the object path that it should have, |uuid| | 39 // object onto, |object_path| is the object path that it should have, |uuid| |
| 40 // is the 128-bit GATT service UUID, and |includes| are a list of object paths | 40 // is the 128-bit GATT service UUID, and |includes| are a list of object paths |
| 41 // belonging to other exported GATT services that are included by the GATT | 41 // belonging to other exported GATT services that are included by the GATT |
| 42 // service being created. Make sure that all included services have been | 42 // service being created. Make sure that all included services have been |
| 43 // exported before registering a GATT services with the GATT manager. | 43 // exported before registering a GATT services with the GATT manager. |
| 44 static BluetoothGattServiceServiceProvider* Create( | 44 static BluetoothGattServiceServiceProvider* Create( |
| 45 dbus::Bus* bus, | 45 dbus::Bus* bus, |
| 46 const dbus::ObjectPath& object_path, | 46 const dbus::ObjectPath& object_path, |
| 47 const std::string& uuid, | 47 const std::string& uuid, |
| 48 bool is_primary, |
| 48 const std::vector<dbus::ObjectPath>& includes); | 49 const std::vector<dbus::ObjectPath>& includes); |
| 49 | 50 |
| 50 protected: | 51 protected: |
| 51 BluetoothGattServiceServiceProvider(); | 52 BluetoothGattServiceServiceProvider(); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(BluetoothGattServiceServiceProvider); | 55 DISALLOW_COPY_AND_ASSIGN(BluetoothGattServiceServiceProvider); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace bluez | 58 } // namespace bluez |
| 58 | 59 |
| 59 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_SERVICE_SERVICE_PROVIDER_H_ | 60 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_SERVICE_SERVICE_PROVIDER_H_ |
| OLD | NEW |