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

Unified Diff: device/bluetooth/bluez/bluetooth_device_bluez.h

Issue 2421713002: arc: bluetooth: Expose missing advertise data. (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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluez/bluetooth_device_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_device_bluez.h b/device/bluetooth/bluez/bluetooth_device_bluez.h
index 3322c473f16e8f1b26c26c8c460207dbf83626e7..6e6f77f0225d9d9f4c46917f5279e92883d0f124 100644
--- a/device/bluetooth/bluez/bluetooth_device_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_device_bluez.h
@@ -9,6 +9,7 @@
#include <memory>
#include <string>
+#include <unordered_map>
#include <unordered_set>
#include <vector>
@@ -66,6 +67,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceBlueZ
UUIDSet GetUUIDs() const override;
base::Optional<int8_t> GetInquiryRSSI() const override;
base::Optional<int8_t> GetInquiryTxPower() const override;
+ base::Optional<uint8_t> GetAdvertisingDataFlags() const override;
bool ExpectingPinCode() const override;
bool ExpectingPasskey() const override;
bool ExpectingConfirmation() const override;
@@ -119,6 +121,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceBlueZ
// advertising service data for a UUID.
void UpdateServiceData();
+ // Called by BluetoothAdapterBlueZ to update manufacturer_data_ defined in
+ // BluetoothDevice when receive DevicePropertyChanged event for the
+ // manufacturer data property. Note that same BlueZ implementation detail from
+ // UpdateServiceData() also applies here.
+ void UpdateManufacturerData();
+
// Creates a pairing object with the given delegate |pairing_delegate| and
// establishes it as the pairing context for this device. All pairing-related
// method calls will be forwarded to this object until it is released.

Powered by Google App Engine
This is Rietveld 408576698