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

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

Issue 2369423003: bluetooth: Expose service data from BlueZ (Closed)
Patch Set: Fix comment Created 4 years, 2 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 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 <string> 10 #include <string>
11 #include <unordered_map>
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"
20 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" 21 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // give false positives. Read-only. 102 // give false positives. Read-only.
102 dbus::Property<bool> legacy_pairing; 103 dbus::Property<bool> legacy_pairing;
103 104
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
112 // Service advertisement data. Keys are the UUIDs in string format followed
113 // by its byte array value. Read-only.
114 dbus::Property<std::unordered_map<std::string, std::vector<uint8_t>>>
115 service_data;
116
111 // Indicate whether or not service discovery has been resolved. Read-only. 117 // Indicate whether or not service discovery has been resolved. Read-only.
112 dbus::Property<bool> services_resolved; 118 dbus::Property<bool> services_resolved;
113 119
114 Properties(dbus::ObjectProxy* object_proxy, 120 Properties(dbus::ObjectProxy* object_proxy,
115 const std::string& interface_name, 121 const std::string& interface_name,
116 const PropertyChangedCallback& callback); 122 const PropertyChangedCallback& callback);
117 ~Properties() override; 123 ~Properties() override;
118 }; 124 };
119 125
120 // Interface for observing changes from a remote bluetooth device. 126 // Interface for observing changes from a remote bluetooth device.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 protected: 231 protected:
226 BluetoothDeviceClient(); 232 BluetoothDeviceClient();
227 233
228 private: 234 private:
229 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient); 235 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceClient);
230 }; 236 };
231 237
232 } // namespace bluez 238 } // namespace bluez
233 239
234 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_ 240 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_device_bluez.cc ('k') | device/bluetooth/dbus/bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698