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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 NO_RENDER_FRAME = 2, | 57 NO_RENDER_FRAME = 2, |
58 OBSOLETE_DISCOVERY_START_FAILED = 3, | 58 OBSOLETE_DISCOVERY_START_FAILED = 3, |
59 OBSOLETE_DISCOVERY_STOP_FAILED = 4, | 59 OBSOLETE_DISCOVERY_STOP_FAILED = 4, |
60 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5, | 60 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5, |
61 BLUETOOTH_ADAPTER_NOT_PRESENT = 6, | 61 BLUETOOTH_ADAPTER_NOT_PRESENT = 6, |
62 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7, | 62 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7, |
63 CHOSEN_DEVICE_VANISHED = 8, | 63 CHOSEN_DEVICE_VANISHED = 8, |
64 BLUETOOTH_CHOOSER_CANCELLED = 9, | 64 BLUETOOTH_CHOOSER_CANCELLED = 9, |
65 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, | 65 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, |
66 BLACKLISTED_SERVICE_IN_FILTER = 11, | 66 BLACKLISTED_SERVICE_IN_FILTER = 11, |
| 67 BLUETOOTH_CHOOSER_GLOBALLY_DISABLED = 12, |
67 // NOTE: Add new requestDevice() outcomes immediately above this line. Make | 68 // NOTE: Add new requestDevice() outcomes immediately above this line. Make |
68 // sure to update the enum list in | 69 // sure to update the enum list in |
69 // tools/metrics/histograms/histograms.xml accordingly. | 70 // tools/metrics/histograms/histograms.xml accordingly. |
70 COUNT | 71 COUNT |
71 }; | 72 }; |
72 // There should be a call to this function before every | 73 // There should be a call to this function before every |
73 // Send(BluetoothMsg_RequestDeviceSuccess...) or | 74 // Send(BluetoothMsg_RequestDeviceSuccess...) or |
74 // Send(BluetoothMsg_RequestDeviceError...). | 75 // Send(BluetoothMsg_RequestDeviceError...). |
75 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); | 76 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); |
76 | 77 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Send(BluetoothMsg_StartNotificationsSuccess) and | 224 // Send(BluetoothMsg_StartNotificationsSuccess) and |
224 // Send(BluetoothMsg_StopNotificationsError). | 225 // Send(BluetoothMsg_StopNotificationsError). |
225 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); | 226 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); |
226 // Records the outcome of a cache query for startNotifications. Should only be | 227 // Records the outcome of a cache query for startNotifications. Should only be |
227 // called if QueryCacheForCharacteristic fails. | 228 // called if QueryCacheForCharacteristic fails. |
228 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); | 229 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); |
229 | 230 |
230 } // namespace content | 231 } // namespace content |
231 | 232 |
232 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 233 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
OLD | NEW |