| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Send(BluetoothMsg_RequestDeviceSuccess...) or | 85 // Send(BluetoothMsg_RequestDeviceSuccess...) or |
| 86 // Send(BluetoothMsg_RequestDeviceError...). | 86 // Send(BluetoothMsg_RequestDeviceError...). |
| 87 CONTENT_EXPORT void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); | 87 CONTENT_EXPORT void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); |
| 88 | 88 |
| 89 // Records stats about the arguments used when calling requestDevice. | 89 // Records stats about the arguments used when calling requestDevice. |
| 90 // - The number of filters used. | 90 // - The number of filters used. |
| 91 // - The size of each filter. | 91 // - The size of each filter. |
| 92 // - UUID of the services used in filters. | 92 // - UUID of the services used in filters. |
| 93 // - Number of optional services used. | 93 // - Number of optional services used. |
| 94 // - UUID of the optional services. | 94 // - UUID of the optional services. |
| 95 // - The value of boolean acceptAllDevices. |
| 95 // - Size of the union of all services. | 96 // - Size of the union of all services. |
| 96 void RecordRequestDeviceOptions( | 97 void RecordRequestDeviceOptions( |
| 97 const blink::mojom::WebBluetoothRequestDeviceOptionsPtr& options); | 98 const blink::mojom::WebBluetoothRequestDeviceOptionsPtr& options); |
| 98 | 99 |
| 99 // GattServer.connect() Metrics | 100 // GattServer.connect() Metrics |
| 100 | 101 |
| 101 enum class UMAConnectGATTOutcome { | 102 enum class UMAConnectGATTOutcome { |
| 102 SUCCESS = 0, | 103 SUCCESS = 0, |
| 103 NO_DEVICE = 1, | 104 NO_DEVICE = 1, |
| 104 UNKNOWN = 2, | 105 UNKNOWN = 2, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // Send(BluetoothMsg_StopNotificationsError). | 273 // Send(BluetoothMsg_StopNotificationsError). |
| 273 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); | 274 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); |
| 274 | 275 |
| 275 // Records the outcome of a cache query for startNotifications. Should only be | 276 // Records the outcome of a cache query for startNotifications. Should only be |
| 276 // called if QueryCacheForCharacteristic fails. | 277 // called if QueryCacheForCharacteristic fails. |
| 277 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); | 278 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); |
| 278 | 279 |
| 279 } // namespace content | 280 } // namespace content |
| 280 | 281 |
| 281 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 282 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
| OLD | NEW |