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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_OVERVIEW_HELP_LINK_PRESSED = 12, | 67 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, |
68 ADAPTER_OFF_HELP_LINK_PRESSED = 13, | 68 ADAPTER_OFF_HELP_LINK_PRESSED = 13, |
69 NEED_LOCATION_HELP_LINK_PRESSED = 14, | 69 NEED_LOCATION_HELP_LINK_PRESSED = 14, |
| 70 BLUETOOTH_CHOOSER_GLOBALLY_DISABLED = 15, |
70 // NOTE: Add new requestDevice() outcomes immediately above this line. Make | 71 // NOTE: Add new requestDevice() outcomes immediately above this line. Make |
71 // sure to update the enum list in | 72 // sure to update the enum list in |
72 // tools/metrics/histograms/histograms.xml accordingly. | 73 // tools/metrics/histograms/histograms.xml accordingly. |
73 COUNT | 74 COUNT |
74 }; | 75 }; |
75 // There should be a call to this function before every | 76 // There should be a call to this function before every |
76 // Send(BluetoothMsg_RequestDeviceSuccess...) or | 77 // Send(BluetoothMsg_RequestDeviceSuccess...) or |
77 // Send(BluetoothMsg_RequestDeviceError...). | 78 // Send(BluetoothMsg_RequestDeviceError...). |
78 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); | 79 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); |
79 | 80 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // Send(BluetoothMsg_StartNotificationsSuccess) and | 228 // Send(BluetoothMsg_StartNotificationsSuccess) and |
228 // Send(BluetoothMsg_StopNotificationsError). | 229 // Send(BluetoothMsg_StopNotificationsError). |
229 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); | 230 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); |
230 // Records the outcome of a cache query for startNotifications. Should only be | 231 // Records the outcome of a cache query for startNotifications. Should only be |
231 // called if QueryCacheForCharacteristic fails. | 232 // called if QueryCacheForCharacteristic fails. |
232 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); | 233 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); |
233 | 234 |
234 } // namespace content | 235 } // namespace content |
235 | 236 |
236 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 237 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
OLD | NEW |