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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 NO_BLUETOOTH_ADAPTER = 1, | 56 NO_BLUETOOTH_ADAPTER = 1, |
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 // NOTE: Add new requestDevice() outcomes immediately above this line. Make | 67 // NOTE: Add new requestDevice() outcomes immediately above this line. Make |
67 // sure to update the enum list in | 68 // sure to update the enum list in |
68 // tools/metrics/histograms/histograms.xml accordingly. | 69 // tools/metrics/histograms/histograms.xml accordingly. |
69 COUNT | 70 COUNT |
70 }; | 71 }; |
71 // There should be a call to this function before every | 72 // There should be a call to this function before every |
72 // Send(BluetoothMsg_RequestDeviceSuccess...) or | 73 // Send(BluetoothMsg_RequestDeviceSuccess...) or |
73 // Send(BluetoothMsg_RequestDeviceError...). | 74 // Send(BluetoothMsg_RequestDeviceError...). |
74 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); | 75 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); |
75 | 76 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // Send(BluetoothMsg_StartNotificationsSuccess) and | 223 // Send(BluetoothMsg_StartNotificationsSuccess) and |
223 // Send(BluetoothMsg_StopNotificationsError). | 224 // Send(BluetoothMsg_StopNotificationsError). |
224 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); | 225 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); |
225 // Records the outcome of a cache query for startNotifications. Should only be | 226 // Records the outcome of a cache query for startNotifications. Should only be |
226 // called if QueryCacheForCharacteristic fails. | 227 // called if QueryCacheForCharacteristic fails. |
227 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); | 228 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); |
228 | 229 |
229 } // namespace content | 230 } // namespace content |
230 | 231 |
231 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 232 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
OLD | NEW |