OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_APPLICATION_SERVICE_PROVIDER_IMPL_H
_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_APPLICATION_SERVICE_PROVIDER_IMPL_H
_ |
6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_APPLICATION_SERVICE_PROVIDER_IMPL_H
_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_APPLICATION_SERVICE_PROVIDER_IMPL_H
_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 private: | 47 private: |
48 friend class BluetoothGattApplicationServiceProviderTest; | 48 friend class BluetoothGattApplicationServiceProviderTest; |
49 FRIEND_TEST_ALL_PREFIXES(BluetoothGattApplicationServiceProviderTest, | 49 FRIEND_TEST_ALL_PREFIXES(BluetoothGattApplicationServiceProviderTest, |
50 GetManagedObjects); | 50 GetManagedObjects); |
51 | 51 |
52 // Returns true if the current thread is on the origin thread. | 52 // Returns true if the current thread is on the origin thread. |
53 bool OnOriginThread(); | 53 bool OnOriginThread(); |
54 | 54 |
55 template <typename Attribute> | 55 template <typename Attribute> |
56 void WriteObjectStruct(dbus::MessageWriter* writer, | 56 void WriteObjectDict(dbus::MessageWriter* writer, |
57 const std::string& attribute_interface, | 57 const std::string& attribute_interface, |
58 Attribute* attribute); | 58 Attribute* attribute); |
59 template <typename Attribute> | 59 template <typename Attribute> |
60 void WriteInterfaceStruct(dbus::MessageWriter* writer, | 60 void WriteInterfaceDict(dbus::MessageWriter* writer, |
61 const std::string& attribute_interface, | 61 const std::string& attribute_interface, |
62 Attribute* attribute); | 62 Attribute* attribute); |
63 | 63 |
64 void WriteAttributeProperties( | 64 void WriteAttributeProperties( |
65 dbus::MessageWriter* writer, | 65 dbus::MessageWriter* writer, |
66 BluetoothGattServiceServiceProvider* service_provider); | 66 BluetoothGattServiceServiceProvider* service_provider); |
67 void WriteAttributeProperties( | 67 void WriteAttributeProperties( |
68 dbus::MessageWriter* writer, | 68 dbus::MessageWriter* writer, |
69 BluetoothGattCharacteristicServiceProvider* characteristic_provider); | 69 BluetoothGattCharacteristicServiceProvider* characteristic_provider); |
70 void WriteAttributeProperties( | 70 void WriteAttributeProperties( |
71 dbus::MessageWriter* writer, | 71 dbus::MessageWriter* writer, |
72 BluetoothGattDescriptorServiceProvider* descriptor_provider); | 72 BluetoothGattDescriptorServiceProvider* descriptor_provider); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // invalidate its weak pointers before any other members are destroyed. | 112 // invalidate its weak pointers before any other members are destroyed. |
113 base::WeakPtrFactory<BluetoothGattApplicationServiceProviderImpl> | 113 base::WeakPtrFactory<BluetoothGattApplicationServiceProviderImpl> |
114 weak_ptr_factory_; | 114 weak_ptr_factory_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(BluetoothGattApplicationServiceProviderImpl); | 116 DISALLOW_COPY_AND_ASSIGN(BluetoothGattApplicationServiceProviderImpl); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace bluez | 119 } // namespace bluez |
120 | 120 |
121 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_APPLICATION_SERVICE_PROVIDER_IMP
L_H_ | 121 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_GATT_APPLICATION_SERVICE_PROVIDER_IMP
L_H_ |
OLD | NEW |