Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: device/bluetooth/bluetooth_adapter_mac_metrics.h

Issue 2912633002: bluetooth: macOS: Adding histograms for NSError values (Closed)
Patch Set: . Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_METRICS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_METRICS_H_
7
8 @class NSError;
9
10 enum class MacOSBluetoothOperationsResult : int {
11 UNKNOWN_ERROR_DOMAIN = -2,
12 NO_ERROR = -1,
13 CBATT_ERROR_SUCCESS = 0,
14 CBATT_ERROR_INVALID_HANDLE = 1,
15 CBATT_ERROR_READ_NOT_PERMITTED = 2,
16 CBATT_ERROR_WRITE_NOT_PERMITTED = 3,
17 CBATT_ERROR_INVALID_PDU = 4,
18 CBATT_ERROR_INSUFFICIENT_AUTHENTICATION = 5,
19 CBATT_ERROR_REQUEST_NOT_SUPPORTED = 6,
20 CBATT_ERROR_INVALID_OFFSET = 7,
21 CBATT_ERROR_INSUFFICIENT_AUTHORIZATION = 8,
22 CBATT_ERROR_PREPARE_QUEUE_FULL = 9,
23 CBATT_ERROR_ATTRIBUTE_NOT_FOUND = 10,
24 CBATT_ERROR_ATTRIBUTE_NOT_LONG = 11,
25 CBATT_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE = 12,
26 CBATT_ERROR_INVALID_ATTRIBUTE_VALUE_LENGTH = 13,
27 CBATT_ERROR_UNLIKELY_ERROR = 14,
28 CBATT_ERROR_INSUFFICIENT_ENCRYPTION = 15,
29 CBATT_ERROR_UNSUPPORTED_GROUP_TYPE = 16,
30 CBATT_ERROR_INSUFFICIENT_RESOURCES = 17,
31 CBATT_ERROR_UNKNOWN_ERROR_CODE = 999,
32 CBERROR_UNKNOWN = 1000,
33 CBERROR_INVALID_PARAMETERS = 1001,
34 CBERROR_INVALID_HANDLE = 1002,
35 CBERROR_NOT_CONNECTED = 1003,
36 CBERROR_OUT_OF_SPACE = 1004,
37 CBERROR_OPERATION_CANCELLED = 1005,
38 CBERROR_CONNECTION_TIMEOUT = 1006,
39 CBERROR_PERIPHERAL_DISCONNECTED = 1007,
40 CBERROR_UUID_NOT_ALLOWED = 1008,
41 CBERROR_ALREADY_ADVERTISING = 1009,
42 CBERROR_MAX_CONNECTION = 1010,
43 CBERROR_UNKNOWN_ERROR_CODE = 1999,
44 MAX,
45 };
46
47 void RecordDidFailToConnectPeripheralResult(NSError* error);
48 void RecordDidDisconnectPeripheralResult(NSError* error);
49 void RecordDidDiscoverPrimaryServicesResult(NSError* error);
50 void RecordDidDiscoverCharacteristicsResult(NSError* error);
51 void RecordDidUpdateValueResult(NSError* error);
52 void RecordDidWriteValueResult(NSError* error);
53 void RecordDidUpdateNotificationStateResult(NSError* error);
54 void RecordDidDiscoverDescriptorsResult(NSError* error);
55 void RecordDidUpdateValueForDescriptorResult(NSError* error);
56 void RecordDidWriteValueForDescriptorResult(NSError* error);
57
58 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_METRICS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_mac_metrics.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698