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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 BLUETOOTH_CHOOSER_CANCELLED = 9, | 67 BLUETOOTH_CHOOSER_CANCELLED = 9, |
68 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, | 68 BLUETOOTH_CHOOSER_DENIED_PERMISSION = 10, |
69 BLACKLISTED_SERVICE_IN_FILTER = 11, | 69 BLACKLISTED_SERVICE_IN_FILTER = 11, |
70 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, | 70 BLUETOOTH_OVERVIEW_HELP_LINK_PRESSED = 12, |
71 ADAPTER_OFF_HELP_LINK_PRESSED = 13, | 71 ADAPTER_OFF_HELP_LINK_PRESSED = 13, |
72 NEED_LOCATION_HELP_LINK_PRESSED = 14, | 72 NEED_LOCATION_HELP_LINK_PRESSED = 14, |
73 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15, | 73 BLUETOOTH_CHOOSER_POLICY_DISABLED = 15, |
74 BLUETOOTH_GLOBALLY_DISABLED = 16, | 74 BLUETOOTH_GLOBALLY_DISABLED = 16, |
75 BLUETOOTH_CHOOSER_EVENT_HANDLER_INVALID = 17, | 75 BLUETOOTH_CHOOSER_EVENT_HANDLER_INVALID = 17, |
76 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE = 18, | 76 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE = 18, |
| 77 BLUETOOTH_CHOOSER_RESCAN = 19, |
77 // NOTE: Add new requestDevice() outcomes immediately above this line. Make | 78 // NOTE: Add new requestDevice() outcomes immediately above this line. Make |
78 // sure to update the enum list in | 79 // sure to update the enum list in |
79 // tools/metrics/histograms/histograms.xml accordingly. | 80 // tools/metrics/histograms/histograms.xml accordingly. |
80 COUNT | 81 COUNT |
81 }; | 82 }; |
82 | 83 |
83 // There should be a call to this function before every | 84 // There should be a call to this function before every |
84 // Send(BluetoothMsg_RequestDeviceSuccess...) or | 85 // Send(BluetoothMsg_RequestDeviceSuccess...) or |
85 // Send(BluetoothMsg_RequestDeviceError...). | 86 // Send(BluetoothMsg_RequestDeviceError...). |
86 CONTENT_EXPORT void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); | 87 CONTENT_EXPORT void RecordRequestDeviceOutcome(UMARequestDeviceOutcome outcome); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 290 |
290 // Records the raw RSSI, and processed result displayed to users, when | 291 // Records the raw RSSI, and processed result displayed to users, when |
291 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is | 292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is |
292 // called. | 293 // called. |
293 void RecordRSSISignalStrength(int rssi); | 294 void RecordRSSISignalStrength(int rssi); |
294 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); | 295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); |
295 | 296 |
296 } // namespace content | 297 } // namespace content |
297 | 298 |
298 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
OLD | NEW |