OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "device/bluetooth/dbus/bluetooth_device_client.h" | 5 #include "device/bluetooth/dbus/bluetooth_device_client.h" |
6 | 6 |
| 7 #include <memory> |
| 8 #include <utility> |
| 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/logging.h" | 11 #include "base/logging.h" |
9 #include "base/macros.h" | 12 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
11 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
12 #include "dbus/bus.h" | 15 #include "dbus/bus.h" |
13 #include "dbus/message.h" | 16 #include "dbus/message.h" |
14 #include "dbus/object_manager.h" | 17 #include "dbus/object_manager.h" |
15 #include "dbus/object_proxy.h" | 18 #include "dbus/object_proxy.h" |
16 #include "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h" | 19 #include "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 RegisterProperty(bluetooth_device::kPairedProperty, &paired); | 195 RegisterProperty(bluetooth_device::kPairedProperty, &paired); |
193 RegisterProperty(bluetooth_device::kConnectedProperty, &connected); | 196 RegisterProperty(bluetooth_device::kConnectedProperty, &connected); |
194 RegisterProperty(bluetooth_device::kTrustedProperty, &trusted); | 197 RegisterProperty(bluetooth_device::kTrustedProperty, &trusted); |
195 RegisterProperty(bluetooth_device::kBlockedProperty, &blocked); | 198 RegisterProperty(bluetooth_device::kBlockedProperty, &blocked); |
196 RegisterProperty(bluetooth_device::kAliasProperty, &alias); | 199 RegisterProperty(bluetooth_device::kAliasProperty, &alias); |
197 RegisterProperty(bluetooth_device::kAdapterProperty, &adapter); | 200 RegisterProperty(bluetooth_device::kAdapterProperty, &adapter); |
198 RegisterProperty(bluetooth_device::kLegacyPairingProperty, &legacy_pairing); | 201 RegisterProperty(bluetooth_device::kLegacyPairingProperty, &legacy_pairing); |
199 RegisterProperty(bluetooth_device::kModaliasProperty, &modalias); | 202 RegisterProperty(bluetooth_device::kModaliasProperty, &modalias); |
200 RegisterProperty(bluetooth_device::kRSSIProperty, &rssi); | 203 RegisterProperty(bluetooth_device::kRSSIProperty, &rssi); |
201 RegisterProperty(bluetooth_device::kTxPowerProperty, &tx_power); | 204 RegisterProperty(bluetooth_device::kTxPowerProperty, &tx_power); |
| 205 RegisterProperty(bluetooth_device::kServiceDataProperty, &service_data); |
202 RegisterProperty(bluetooth_device::kServicesResolvedProperty, | 206 RegisterProperty(bluetooth_device::kServicesResolvedProperty, |
203 &services_resolved); | 207 &services_resolved); |
204 } | 208 } |
205 | 209 |
206 BluetoothDeviceClient::Properties::~Properties() {} | 210 BluetoothDeviceClient::Properties::~Properties() {} |
207 | 211 |
208 // The BluetoothDeviceClient implementation used in production. | 212 // The BluetoothDeviceClient implementation used in production. |
209 class BluetoothDeviceClientImpl : public BluetoothDeviceClient, | 213 class BluetoothDeviceClientImpl : public BluetoothDeviceClient, |
210 public dbus::ObjectManager::Interface { | 214 public dbus::ObjectManager::Interface { |
211 public: | 215 public: |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 563 |
560 BluetoothDeviceClient::BluetoothDeviceClient() {} | 564 BluetoothDeviceClient::BluetoothDeviceClient() {} |
561 | 565 |
562 BluetoothDeviceClient::~BluetoothDeviceClient() {} | 566 BluetoothDeviceClient::~BluetoothDeviceClient() {} |
563 | 567 |
564 BluetoothDeviceClient* BluetoothDeviceClient::Create() { | 568 BluetoothDeviceClient* BluetoothDeviceClient::Create() { |
565 return new BluetoothDeviceClientImpl(); | 569 return new BluetoothDeviceClientImpl(); |
566 } | 570 } |
567 | 571 |
568 } // namespace bluez | 572 } // namespace bluez |
OLD | NEW |