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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 NO_CHARACTERISTIC = 3, | 177 NO_CHARACTERISTIC = 3, |
178 NO_DESCRIPTOR = 4, | 178 NO_DESCRIPTOR = 4, |
179 UNKNOWN = 5, | 179 UNKNOWN = 5, |
180 FAILED = 6, | 180 FAILED = 6, |
181 IN_PROGRESS = 7, | 181 IN_PROGRESS = 7, |
182 INVALID_LENGTH = 8, | 182 INVALID_LENGTH = 8, |
183 NOT_PERMITTED = 9, | 183 NOT_PERMITTED = 9, |
184 NOT_AUTHORIZED = 10, | 184 NOT_AUTHORIZED = 10, |
185 NOT_PAIRED = 11, | 185 NOT_PAIRED = 11, |
186 NOT_SUPPORTED = 12, | 186 NOT_SUPPORTED = 12, |
| 187 BLACKLISTED = 13, |
187 // Note: Add new GATT Outcomes immediately above this line. | 188 // Note: Add new GATT Outcomes immediately above this line. |
188 // Make sure to update the enum list in | 189 // Make sure to update the enum list in |
189 // tools/metrics/histograms/histograms.xml accordingly. | 190 // tools/metrics/histograms/histograms.xml accordingly. |
190 COUNT | 191 COUNT |
191 }; | 192 }; |
192 | 193 |
193 enum class UMAGATTOperation { | 194 enum class UMAGATTOperation { |
194 CHARACTERISTIC_READ, | 195 CHARACTERISTIC_READ, |
195 CHARACTERISTIC_WRITE, | 196 CHARACTERISTIC_WRITE, |
196 START_NOTIFICATIONS, | 197 START_NOTIFICATIONS, |
(...skipping 30 matching lines...) Expand all 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 |