| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5, | 61 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5, |
| 62 BLUETOOTH_ADAPTER_NOT_PRESENT = 6, | 62 BLUETOOTH_ADAPTER_NOT_PRESENT = 6, |
| 63 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7, | 63 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7, |
| 64 CHOSEN_DEVICE_VANISHED = 8, | 64 CHOSEN_DEVICE_VANISHED = 8, |
| 65 BLUETOOTH_CHOOSER_CANCELLED = 9, | 65 BLUETOOTH_CHOOSER_CANCELLED = 9, |
| 66 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, | 66 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, |
| 67 BLACKLISTED_SERVICE_IN_FILTER = 11, | 67 BLACKLISTED_SERVICE_IN_FILTER = 11, |
| 68 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, | 68 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, |
| 69 ADAPTER_OFF_HELP_LINK_PRESSED = 13, | 69 ADAPTER_OFF_HELP_LINK_PRESSED = 13, |
| 70 NEED_LOCATION_HELP_LINK_PRESSED = 14, | 70 NEED_LOCATION_HELP_LINK_PRESSED = 14, |
| 71 BLUETOOTH_CHOOSER_GLOBALLY_DISABLED = 15, | 71 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15, |
| 72 BLUETOOTH_GLOBALLY_DISABLED = 16, |
| 72 // NOTE: Add new requestDevice() outcomes immediately above this line. Make | 73 // NOTE: Add new requestDevice() outcomes immediately above this line. Make |
| 73 // sure to update the enum list in | 74 // sure to update the enum list in |
| 74 // tools/metrics/histograms/histograms.xml accordingly. | 75 // tools/metrics/histograms/histograms.xml accordingly. |
| 75 COUNT | 76 COUNT |
| 76 }; | 77 }; |
| 77 // There should be a call to this function before every | 78 // There should be a call to this function before every |
| 78 // Send(BluetoothMsg_RequestDeviceSuccess...) or | 79 // Send(BluetoothMsg_RequestDeviceSuccess...) or |
| 79 // Send(BluetoothMsg_RequestDeviceError...). | 80 // Send(BluetoothMsg_RequestDeviceError...). |
| 80 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); | 81 void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); |
| 81 | 82 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Send(BluetoothMsg_StartNotificationsSuccess) and | 243 // Send(BluetoothMsg_StartNotificationsSuccess) and |
| 243 // Send(BluetoothMsg_StopNotificationsError). | 244 // Send(BluetoothMsg_StopNotificationsError). |
| 244 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); | 245 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); |
| 245 // Records the outcome of a cache query for startNotifications. Should only be | 246 // Records the outcome of a cache query for startNotifications. Should only be |
| 246 // called if QueryCacheForCharacteristic fails. | 247 // called if QueryCacheForCharacteristic fails. |
| 247 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); | 248 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); |
| 248 | 249 |
| 249 } // namespace content | 250 } // namespace content |
| 250 | 251 |
| 251 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 252 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
| OLD | NEW |