Chromium Code Reviews| 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 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | |
| 10 #include <string> | 11 #include <string> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/callback.h" | 14 #include "base/callback.h" |
| 14 #include "base/macros.h" | 15 #include "base/macros.h" |
| 15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 16 #include "base/values.h" | 17 #include "base/values.h" |
| 17 #include "dbus/object_path.h" | 18 #include "dbus/object_path.h" |
| 18 #include "dbus/property.h" | 19 #include "dbus/property.h" |
| 19 #include "device/bluetooth/bluetooth_export.h" | 20 #include "device/bluetooth/bluetooth_export.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 // Remote Device ID information in Linux kernel modalias format. Read-only. | 105 // Remote Device ID information in Linux kernel modalias format. Read-only. |
| 105 dbus::Property<std::string> modalias; | 106 dbus::Property<std::string> modalias; |
| 106 | 107 |
| 107 // Received signal strength indicator that is set when the device is | 108 // Received signal strength indicator that is set when the device is |
| 108 // discovered during inquiry. Read-only. | 109 // discovered during inquiry. Read-only. |
| 109 dbus::Property<int16_t> rssi; | 110 dbus::Property<int16_t> rssi; |
| 110 | 111 |
| 111 // Indicate whether or not service discovery has been resolved. Read-only. | 112 // Indicate whether or not service discovery has been resolved. Read-only. |
| 112 dbus::Property<bool> services_resolved; | 113 dbus::Property<bool> services_resolved; |
| 113 | 114 |
| 115 // List of Service data. Read-only. | |
| 116 dbus::Property<std::map<std::string, std::vector<uint8_t>>> service_data; | |
|
ortuno
2016/09/28 08:39:24
Could this be an unordered map?
puthik_chromium
2016/10/05 00:11:33
Done.
| |
| 117 | |
| 114 Properties(dbus::ObjectProxy* object_proxy, | 118 Properties(dbus::ObjectProxy* object_proxy, |
| 115 const std::string& interface_name, | 119 const std::string& interface_name, |
| 116 const PropertyChangedCallback& callback); | 120 const PropertyChangedCallback& callback); |
| 117 ~Properties() override; | 121 ~Properties() override; |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 // Interface for observing changes from a remote bluetooth device. | 124 // Interface for observing changes from a remote bluetooth device. |
| 121 class Observer { | 125 class Observer { |
| 122 public: | 126 public: |
| 123 virtual ~Observer() {} | 127 virtual ~Observer() {} |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 protected: | 229 protected: |
| 226 BluetoothDeviceClient(); | 230 BluetoothDeviceClient(); |
| 227 | 231 |
| 228 private: | 232 private: |
| 229 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); | 233 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); |
| 230 }; | 234 }; |
| 231 | 235 |
| 232 } // namespace bluez | 236 } // namespace bluez |
| 233 | 237 |
| 234 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ | 238 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ |
| OLD | NEW |