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

Unified Diff: device/bluetooth/public/interfaces/adapter.mojom

Issue 2404623002: bluetooth: Add DeviceChanged logging in Device service. (Closed)
Patch Set: Change PacketReceived to DeviceChanged 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/public/interfaces/adapter.mojom
diff --git a/device/bluetooth/public/interfaces/adapter.mojom b/device/bluetooth/public/interfaces/adapter.mojom
index 959c8e35ee91e13c23dae917d74f89515cd160e8..945c36b236b56e70e6a2df49030075057ddfc79b 100644
--- a/device/bluetooth/public/interfaces/adapter.mojom
+++ b/device/bluetooth/public/interfaces/adapter.mojom
@@ -38,6 +38,15 @@ interface AdapterClient {
// Called after the device hasn't been seen for 3 minutes.
DeviceRemoved(DeviceInfo device);
+
+ // Called when one of the following properties of a device changes:
+ // Address, appearance, Bluetooth class, Inquiry RSSI, Inquiry TX Power,
+ // Service UUIDs, Connectionable state, Connection state, Pairing state,
+ // Trustable state.
+ // Generally called for each advertisement packet recevied, but this is not
+ // guaranteed on ChromeOS or Linux. Because the RSSI is always changing,
+ // it's very likely this will be called for each advertising packet.
+ DeviceChanged(DeviceInfo device);
};
interface AdapterFactory {

Powered by Google App Engine
This is Rietveld 408576698