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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 // Note: Add new RSSI signal strength level immediately above this line. | 287 // Note: Add new RSSI signal strength level immediately above this line. |
288 COUNT | 288 COUNT |
289 }; | 289 }; |
290 | 290 |
291 // Records the raw RSSI, and processed result displayed to users, when | 291 // Records the raw RSSI, and processed result displayed to users, when |
292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is | 292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is |
293 // called. | 293 // called. |
294 void RecordRSSISignalStrength(int rssi); | 294 void RecordRSSISignalStrength(int rssi); |
295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); | 295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); |
296 | 296 |
| 297 // In the case of not accepting all devices in the options that are given |
| 298 // to WebBluetooth requestDevice(), records the number of devices in the |
| 299 // chooser when a device is paired. |
| 300 void RecordNumOfDevices(bool accept_all_devices, size_t num_of_devices); |
| 301 |
297 } // namespace content | 302 } // namespace content |
298 | 303 |
299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 304 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
OLD | NEW |