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

Side by Side Diff: device/bluetooth/dbus/bluetooth_gatt_service_service_provider.h

Issue 1946053002: Fixes to DBus GATT components. (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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698