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

Unified Diff: content/browser/bluetooth/bluetooth_metrics.h

Issue 2458163003: Add UMA for WebBluetooth RSSI signal strength level (Closed)
Patch Set: address comments Created 4 years, 1 month 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: content/browser/bluetooth/bluetooth_metrics.h
diff --git a/content/browser/bluetooth/bluetooth_metrics.h b/content/browser/bluetooth/bluetooth_metrics.h
index d3506c3dad2071f0cfa3a8e4cb727d7757731089..d4638d347cfa539b1430aa0a962637eb5fcd068b 100644
--- a/content/browser/bluetooth/bluetooth_metrics.h
+++ b/content/browser/bluetooth/bluetooth_metrics.h
@@ -276,6 +276,24 @@ void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome);
// called if QueryCacheForCharacteristic fails.
void RecordStartNotificationsOutcome(CacheQueryOutcome outcome);
+enum class UMARSSISignalStrengthLevel {
+ LESS_THAN_OR_EQUAL_TO_MIN_RSSI,
+ LEVEL_0,
+ LEVEL_1,
+ LEVEL_2,
+ LEVEL_3,
+ LEVEL_4,
+ GREATER_THAN_OR_EQUAL_TO_MAX_RSSI,
+ // Note: Add new RSSI signal strength level immediately above this line.
+ COUNT
+};
+
+// Records the raw RSSI, and processed result displayed to users, when
+// content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is
+// called.
+void RecordRSSISignalStrength(int rssi);
+void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
+
} // namespace content
#endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
« no previous file with comments | « content/browser/bluetooth/bluetooth_device_chooser_controller.cc ('k') | content/browser/bluetooth/bluetooth_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698