| 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 |
| 11 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om.h" | 11 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class TimeDelta; | 14 class TimeDelta; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace device { | 17 namespace device { |
| 18 class BluetoothUUID; | 18 class BluetoothUUID; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 struct BluetoothScanFilter; | |
| 23 | 22 |
| 24 // General Metrics | 23 // General Metrics |
| 25 | 24 |
| 26 // Enumeration of each Web Bluetooth API entry point. | 25 // Enumeration of each Web Bluetooth API entry point. |
| 27 enum class UMAWebBluetoothFunction { | 26 enum class UMAWebBluetoothFunction { |
| 28 REQUEST_DEVICE = 0, | 27 REQUEST_DEVICE = 0, |
| 29 CONNECT_GATT = 1, | 28 CONNECT_GATT = 1, |
| 30 GET_PRIMARY_SERVICE = 2, | 29 GET_PRIMARY_SERVICE = 2, |
| 31 SERVICE_GET_CHARACTERISTIC = 3, | 30 SERVICE_GET_CHARACTERISTIC = 3, |
| 32 CHARACTERISTIC_READ_VALUE = 4, | 31 CHARACTERISTIC_READ_VALUE = 4, |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 289 |
| 291 // Records the raw RSSI, and processed result displayed to users, when | 290 // Records the raw RSSI, and processed result displayed to users, when |
| 292 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is | 291 // content::BluetoothDeviceChooserController::CalculateSignalStrengthLevel() is |
| 293 // called. | 292 // called. |
| 294 void RecordRSSISignalStrength(int rssi); | 293 void RecordRSSISignalStrength(int rssi); |
| 295 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); | 294 void RecordRSSISignalStrengthLevel(UMARSSISignalStrengthLevel level); |
| 296 | 295 |
| 297 } // namespace content | 296 } // namespace content |
| 298 | 297 |
| 299 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ | 298 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_METRICS_H_ |
| OLD | NEW |