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

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

Issue 2488283003: bluetooth: web: Rename Blacklist to Blocklist (Closed)
Patch Set: bluetooth: web: Rename Blacklist to Blocklist Created 4 years, 1 month 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 NO_BLUETOOTH_ADAPTER = 1, 59 NO_BLUETOOTH_ADAPTER = 1,
60 NO_RENDER_FRAME = 2, 60 NO_RENDER_FRAME = 2,
61 OBSOLETE_DISCOVERY_START_FAILED = 3, 61 OBSOLETE_DISCOVERY_START_FAILED = 3,
62 OBSOLETE_DISCOVERY_STOP_FAILED = 4, 62 OBSOLETE_DISCOVERY_STOP_FAILED = 4,
63 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5, 63 OBSOLETE_NO_MATCHING_DEVICES_FOUND = 5,
64 BLUETOOTH_ADAPTER_NOT_PRESENT = 6, 64 BLUETOOTH_ADAPTER_NOT_PRESENT = 6,
65 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7, 65 OBSOLETE_BLUETOOTH_ADAPTER_OFF = 7,
66 CHOSEN_DEVICE_VANISHED = 8, 66 CHOSEN_DEVICE_VANISHED = 8,
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 BLOCKLISTED_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 // NOTE: Add new requestDevice() outcomes immediately above this line. Make 77 // NOTE: Add new requestDevice() outcomes immediately above this line. Make
78 // sure to update the enum list in 78 // sure to update the enum list in
79 // tools/metrics/histograms/histograms.xml accordingly. 79 // tools/metrics/histograms/histograms.xml accordingly.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 blink::mojom::WebBluetoothGATTQueryQuantity quantity, 170 blink::mojom::WebBluetoothGATTQueryQuantity quantity,
171 const base::Optional<device::BluetoothUUID>& service); 171 const base::Optional<device::BluetoothUUID>& service);
172 172
173 // getCharacteristic() and getCharacteristics() Metrics 173 // getCharacteristic() and getCharacteristics() Metrics
174 174
175 enum class UMAGetCharacteristicOutcome { 175 enum class UMAGetCharacteristicOutcome {
176 SUCCESS = 0, 176 SUCCESS = 0,
177 NO_DEVICE = 1, 177 NO_DEVICE = 1,
178 NO_SERVICE = 2, 178 NO_SERVICE = 2,
179 NOT_FOUND = 3, 179 NOT_FOUND = 3,
180 BLACKLISTED = 4, 180 BLOCKLISTED = 4,
181 NO_CHARACTERISTICS = 5, 181 NO_CHARACTERISTICS = 5,
182 // Note: Add new outcomes immediately above this line. 182 // Note: Add new outcomes immediately above this line.
183 // Make sure to update the enum list in 183 // Make sure to update the enum list in
184 // tools/metrisc/histogram/histograms.xml accordingly. 184 // tools/metrisc/histogram/histograms.xml accordingly.
185 COUNT 185 COUNT
186 }; 186 };
187 187
188 // There should be a call to this function whenever 188 // There should be a call to this function whenever
189 // RemoteServiceGetCharacteristicsCallback is run. 189 // RemoteServiceGetCharacteristicsCallback is run.
190 // Pass blink::mojom::WebBluetoothGATTQueryQuantity::SINGLE for 190 // Pass blink::mojom::WebBluetoothGATTQueryQuantity::SINGLE for
(...skipping 26 matching lines...) Expand all
217 NO_CHARACTERISTIC = 3, 217 NO_CHARACTERISTIC = 3,
218 NO_DESCRIPTOR = 4, 218 NO_DESCRIPTOR = 4,
219 UNKNOWN = 5, 219 UNKNOWN = 5,
220 FAILED = 6, 220 FAILED = 6,
221 IN_PROGRESS = 7, 221 IN_PROGRESS = 7,
222 INVALID_LENGTH = 8, 222 INVALID_LENGTH = 8,
223 NOT_PERMITTED = 9, 223 NOT_PERMITTED = 9,
224 NOT_AUTHORIZED = 10, 224 NOT_AUTHORIZED = 10,
225 NOT_PAIRED = 11, 225 NOT_PAIRED = 11,
226 NOT_SUPPORTED = 12, 226 NOT_SUPPORTED = 12,
227 BLACKLISTED = 13, 227 BLOCKLISTED = 13,
228 // Note: Add new GATT Outcomes immediately above this line. 228 // Note: Add new GATT Outcomes immediately above this line.
229 // Make sure to update the enum list in 229 // Make sure to update the enum list in
230 // tools/metrics/histograms/histograms.xml accordingly. 230 // tools/metrics/histograms/histograms.xml accordingly.
231 COUNT 231 COUNT
232 }; 232 };
233 233
234 enum class UMAGATTOperation { 234 enum class UMAGATTOperation {
235 CHARACTERISTIC_READ, 235 CHARACTERISTIC_READ,
236 CHARACTERISTIC_WRITE, 236 CHARACTERISTIC_WRITE,
237 START_NOTIFICATIONS, 237 START_NOTIFICATIONS,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 // Records the raw RSSI, and processed result displayed to users, when 290 // Records the raw RSSI, and processed result displayed to users, when
291 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is 291 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is
292 // called. 292 // called.
293 void RecordRSSISignalStrength(int rssi); 293 void RecordRSSISignalStrength(int rssi);
294 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); 294 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
295 295
296 } // namespace content 296 } // namespace content
297 297
298 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 298 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698