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