| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
| 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Characteristic.startNotifications() Metrics | 269 // Characteristic.startNotifications() Metrics |
| 270 // There should be a call to this function for every call to | 270 // There should be a call to this function for every call to |
| 271 // Send(BluetoothMsg_StartNotificationsSuccess) and | 271 // Send(BluetoothMsg_StartNotificationsSuccess) and |
| 272 // Send(BluetoothMsg_StopNotificationsError). | 272 // Send(BluetoothMsg_StopNotificationsError). |
| 273 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); | 273 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); |
| 274 | 274 |
| 275 // Records the outcome of a cache query for startNotifications. Should only be | 275 // Records the outcome of a cache query for startNotifications. Should only be |
| 276 // called if QueryCacheForCharacteristic fails. | 276 // called if QueryCacheForCharacteristic fails. |
| 277 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); | 277 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); |
| 278 | 278 |
| 279 enum class UMARSSISignalStrengthLevel { |
| 280 LESS_THAN_OR_EQUAL_TO_MIN_RSSI, |
| 281 LEVEL_0, |
| 282 LEVEL_1, |
| 283 LEVEL_2, |
| 284 LEVEL_3, |
| 285 LEVEL_4, |
| 286 GREATER_THAN_OR_EQUAL_TO_MAX_RSSI, |
| 287 // Note: Add new RSSI signal strength level immediately above this line. |
| 288 COUNT |
| 289 }; |
| 290 |
| 291 // Records the raw RSSI, and processed result displayed to users, when |
| 292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is |
| 293 // called. |
| 294 void RecordRSSISignalStrength(int rssi); |
| 295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); |
| 296 |
| 279 } // namespace content | 297 } // namespace content |
| 280 | 298 |
| 281 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
| OLD | NEW |