| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ | 6 #define CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Writes info about paired Bluetooth devices on this system. | 84 // Writes info about paired Bluetooth devices on this system. |
| 85 void WriteBluetoothProto(metrics::SystemProfileProto* system_profile_proto); | 85 void WriteBluetoothProto(metrics::SystemProfileProto* system_profile_proto); |
| 86 | 86 |
| 87 // Record the device enrollment status. | 87 // Record the device enrollment status. |
| 88 void RecordEnrollmentStatus(); | 88 void RecordEnrollmentStatus(); |
| 89 | 89 |
| 90 // For collecting systemwide perf data. | 90 // For collecting systemwide perf data. |
| 91 metrics::PerfProvider perf_provider_; | 91 metrics::PerfProvider perf_provider_; |
| 92 | 92 |
| 93 // Enables runtime memory leak detection and gets notified of leak reports. | 93 // Enables runtime memory leak detection and gets notified of leak reports. |
| 94 scoped_ptr<metrics::LeakDetectorController> leak_detector_controller_; | 94 std::unique_ptr<metrics::LeakDetectorController> leak_detector_controller_; |
| 95 | 95 |
| 96 // Bluetooth Adapter instance for collecting information about paired devices. | 96 // Bluetooth Adapter instance for collecting information about paired devices. |
| 97 scoped_refptr<device::BluetoothAdapter> adapter_; | 97 scoped_refptr<device::BluetoothAdapter> adapter_; |
| 98 | 98 |
| 99 // Whether the user count was registered at the last log initialization. | 99 // Whether the user count was registered at the last log initialization. |
| 100 bool registered_user_count_at_log_initialization_; | 100 bool registered_user_count_at_log_initialization_; |
| 101 | 101 |
| 102 // The user count at the time that a log was last initialized. Contains a | 102 // The user count at the time that a log was last initialized. Contains a |
| 103 // valid value only if |registered_user_count_at_log_initialization_| is | 103 // valid value only if |registered_user_count_at_log_initialization_| is |
| 104 // true. | 104 // true. |
| 105 uint64_t user_count_at_log_initialization_; | 105 uint64_t user_count_at_log_initialization_; |
| 106 | 106 |
| 107 // Hardware class (e.g., hardware qualification ID). This class identifies | 107 // Hardware class (e.g., hardware qualification ID). This class identifies |
| 108 // the configured system components such as CPU, WiFi adapter, etc. | 108 // the configured system components such as CPU, WiFi adapter, etc. |
| 109 std::string hardware_class_; | 109 std::string hardware_class_; |
| 110 | 110 |
| 111 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; | 111 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); | 113 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ | 116 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ |
| OLD | NEW |