| Index: content/browser/bluetooth/bluetooth_metrics.h
|
| diff --git a/content/browser/bluetooth/bluetooth_metrics.h b/content/browser/bluetooth/bluetooth_metrics.h
|
| index bceb1772a8bd1370089b8a0f1b25b17259ad0ff8..e2faec586300f0fa61089c7089b8620c77bc6659 100644
|
| --- a/content/browser/bluetooth/bluetooth_metrics.h
|
| +++ b/content/browser/bluetooth/bluetooth_metrics.h
|
| @@ -40,6 +40,18 @@ enum class UMAWebBluetoothFunction {
|
| // API.
|
| void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction function);
|
|
|
| +// Enumation for outcomes of querying the bluetooth cache.
|
| +enum class CacheQueryOutcome {
|
| + SUCCESS = 0,
|
| + NO_DEVICE = 1,
|
| + NO_SERVICE = 2,
|
| + NO_CHARACTERISTIC = 3,
|
| +};
|
| +
|
| +// Record outcome for the function based on the cache query error.
|
| +void RecordOutcomeWithCacheQueryResult(UMAWebBluetoothFunction function,
|
| + CacheQueryOutcome outcome);
|
| +
|
| // requestDevice() Metrics
|
| enum class UMARequestDeviceOutcome {
|
| SUCCESS = 0,
|
|
|