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

Side by Side Diff: content/browser/bluetooth/bluetooth_metrics.h

Issue 2727683003: bluetooth: Clean up connection errors (Closed)
Patch Set: merge Created 3 years, 9 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SUCCESS = 0, 107 SUCCESS = 0,
108 NO_DEVICE = 1, 108 NO_DEVICE = 1,
109 UNKNOWN = 2, 109 UNKNOWN = 2,
110 IN_PROGRESS = 3, 110 IN_PROGRESS = 3,
111 FAILED = 4, 111 FAILED = 4,
112 AUTH_FAILED = 5, 112 AUTH_FAILED = 5,
113 AUTH_CANCELED = 6, 113 AUTH_CANCELED = 6,
114 AUTH_REJECTED = 7, 114 AUTH_REJECTED = 7,
115 AUTH_TIMEOUT = 8, 115 AUTH_TIMEOUT = 8,
116 UNSUPPORTED_DEVICE = 9, 116 UNSUPPORTED_DEVICE = 9,
117 ATTRIBUTE_LENGTH_INVALID = 10,
118 CONNECTION_CONGESTED = 11,
119 INSUFFICIENT_ENCRYPTION = 12,
120 OFFSET_INVALID = 13,
121 READ_NOT_PERMITTED = 14,
122 REQUEST_NOT_SUPPORTED = 15,
123 WRITE_NOT_PERMITTED = 16,
124 // Note: Add new ConnectGATT outcomes immediately above this line. Make sure 117 // Note: Add new ConnectGATT outcomes immediately above this line. Make sure
125 // to update the enum list in tools/metrics/histograms/histograms.xml 118 // to update the enum list in tools/metrics/histograms/histograms.xml
126 // accordingly. 119 // accordingly.
127 COUNT 120 COUNT
128 }; 121 };
129 122
130 // There should be a call to this function before every 123 // There should be a call to this function before every
131 // Send(BluetoothMsg_ConnectGATTSuccess) and 124 // Send(BluetoothMsg_ConnectGATTSuccess) and
132 // Send(BluetoothMsg_ConnectGATTError). 125 // Send(BluetoothMsg_ConnectGATTError).
133 void RecordConnectGATTOutcome(UMAConnectGATTOutcome outcome); 126 void RecordConnectGATTOutcome(UMAConnectGATTOutcome outcome);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); 350 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
358 351
359 // In the case of not accepting all devices in the options that are given 352 // In the case of not accepting all devices in the options that are given
360 // to WebBluetooth requestDevice(), records the number of devices in the 353 // to WebBluetooth requestDevice(), records the number of devices in the
361 // chooser when a device is paired. 354 // chooser when a device is paired.
362 void RecordNumOfDevices(bool accept_all_devices, size_t num_of_devices); 355 void RecordNumOfDevices(bool accept_all_devices, size_t num_of_devices);
363 356
364 } // namespace content 357 } // namespace content
365 358
366 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 359 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698