Chromium Code Reviews| 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..a6f8f7d920a177aa0837b471e03bd01216d9898d 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 RSSI signal strength and level when |
|
scheib
2016/10/31 22:22:32
"Records the raw RSSI, and processed result displa
juncai
2016/10/31 23:29:50
Done.
|
| +// content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is |
| +// called. |
| +void RecordRSSISignalStrength(int rssi); |
| +void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); |
| + |
| } // namespace content |
| #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |