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

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

Issue 2458163003: Add UMA for WebBluetooth RSSI signal strength level (Closed)
Patch Set: address comments 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Characteristic.startNotifications() Metrics 269 // Characteristic.startNotifications() Metrics
270 // There should be a call to this function for every call to 270 // There should be a call to this function for every call to
271 // Send(BluetoothMsg_StartNotificationsSuccess) and 271 // Send(BluetoothMsg_StartNotificationsSuccess) and
272 // Send(BluetoothMsg_StopNotificationsError). 272 // Send(BluetoothMsg_StopNotificationsError).
273 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome); 273 void RecordStartNotificationsOutcome(UMAGATTOperationOutcome outcome);
274 274
275 // Records the outcome of a cache query for startNotifications. Should only be 275 // Records the outcome of a cache query for startNotifications. Should only be
276 // called if QueryCacheForCharacteristic fails. 276 // called if QueryCacheForCharacteristic fails.
277 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome); 277 void RecordStartNotificationsOutcome(CacheQueryOutcome outcome);
278 278
279 enum class UMARSSISignalStrengthLevel {
280 LESS_THAN_OR_EQUAL_TO_MIN_RSSI,
281 LEVEL_0,
282 LEVEL_1,
283 LEVEL_2,
284 LEVEL_3,
285 LEVEL_4,
286 GREATER_THAN_OR_EQUAL_TO_MAX_RSSI,
287 // Note: Add new RSSI signal strength level immediately above this line.
288 COUNT
289 };
290
291 // Records the raw RSSI, and processed result displayed to users, when
292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is
293 // called.
294 void RecordRSSISignalStrength(int rssi);
295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level);
296
279 } // namespace content 297 } // namespace content
280 298
281 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ 299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_device_chooser_controller.cc ('k') | content/browser/bluetooth/bluetooth_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698