| 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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/metrics/perf_provider_chromeos.h" | 9 #include "chrome/browser/metrics/perf_provider_chromeos.h" |
| 10 #include "components/metrics/metrics_provider.h" | 10 #include "components/metrics/metrics_provider.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void UpdateMultiProfileUserCount( | 54 void UpdateMultiProfileUserCount( |
| 55 metrics::SystemProfileProto* system_profile_proto); | 55 metrics::SystemProfileProto* system_profile_proto); |
| 56 | 56 |
| 57 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() | 57 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() |
| 58 // call. | 58 // call. |
| 59 void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter); | 59 void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter); |
| 60 | 60 |
| 61 // Writes info about paired Bluetooth devices on this system. | 61 // Writes info about paired Bluetooth devices on this system. |
| 62 void WriteBluetoothProto(metrics::SystemProfileProto* system_profile_proto); | 62 void WriteBluetoothProto(metrics::SystemProfileProto* system_profile_proto); |
| 63 | 63 |
| 64 // Record the device enrollment status. |
| 65 void RecordEnrollmentStatus(); |
| 66 |
| 64 metrics::PerfProvider perf_provider_; | 67 metrics::PerfProvider perf_provider_; |
| 65 | 68 |
| 66 // Bluetooth Adapter instance for collecting information about paired devices. | 69 // Bluetooth Adapter instance for collecting information about paired devices. |
| 67 scoped_refptr<device::BluetoothAdapter> adapter_; | 70 scoped_refptr<device::BluetoothAdapter> adapter_; |
| 68 | 71 |
| 69 // Whether the user count was registered at the last log initialization. | 72 // Whether the user count was registered at the last log initialization. |
| 70 bool registered_user_count_at_log_initialization_; | 73 bool registered_user_count_at_log_initialization_; |
| 71 | 74 |
| 72 // The user count at the time that a log was last initialized. Contains a | 75 // The user count at the time that a log was last initialized. Contains a |
| 73 // valid value only if |registered_user_count_at_log_initialization_| is | 76 // valid value only if |registered_user_count_at_log_initialization_| is |
| 74 // true. | 77 // true. |
| 75 uint64 user_count_at_log_initialization_; | 78 uint64 user_count_at_log_initialization_; |
| 76 | 79 |
| 77 // Hardware class (e.g., hardware qualification ID). This class identifies | 80 // Hardware class (e.g., hardware qualification ID). This class identifies |
| 78 // the configured system components such as CPU, WiFi adapter, etc. | 81 // the configured system components such as CPU, WiFi adapter, etc. |
| 79 std::string hardware_class_; | 82 std::string hardware_class_; |
| 80 | 83 |
| 81 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; | 84 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; |
| 82 | 85 |
| 83 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); | 86 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ | 89 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ |
| OLD | NEW |