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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void Init() override; | 59 void Init() override; |
60 void OnDidCreateMetricsLog() override; | 60 void OnDidCreateMetricsLog() override; |
61 void ProvideSystemProfileMetrics( | 61 void ProvideSystemProfileMetrics( |
62 metrics::SystemProfileProto* system_profile_proto) override; | 62 metrics::SystemProfileProto* system_profile_proto) override; |
63 void ProvideStabilityMetrics( | 63 void ProvideStabilityMetrics( |
64 metrics::SystemProfileProto* system_profile_proto) override; | 64 metrics::SystemProfileProto* system_profile_proto) override; |
65 void ProvideGeneralMetrics( | 65 void ProvideGeneralMetrics( |
66 metrics::ChromeUserMetricsExtension* uma_proto) override; | 66 metrics::ChromeUserMetricsExtension* uma_proto) override; |
67 | 67 |
68 private: | 68 private: |
69 // Called on the FILE thread to load hardware class information. | 69 // Called on a background thread to load hardware class information. |
70 void InitTaskGetHardwareClassOnFileThread(); | 70 void InitTaskGetHardwareClassOnBackgroundThread(); |
71 | 71 |
72 // Update the number of users logged into a multi-profile session. | 72 // Update the number of users logged into a multi-profile session. |
73 // If the number of users change while the log is open, the call invalidates | 73 // If the number of users change while the log is open, the call invalidates |
74 // the user count value. | 74 // the user count value. |
75 void UpdateMultiProfileUserCount( | 75 void UpdateMultiProfileUserCount( |
76 metrics::SystemProfileProto* system_profile_proto); | 76 metrics::SystemProfileProto* system_profile_proto); |
77 | 77 |
78 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() | 78 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() |
79 // call and calls callback. | 79 // call and calls callback. |
80 void SetBluetoothAdapter(base::Closure callback, | 80 void SetBluetoothAdapter(base::Closure callback, |
(...skipping 28 matching lines...) Expand all Loading... |
109 // Hardware class (e.g., hardware qualification ID). This class identifies | 109 // Hardware class (e.g., hardware qualification ID). This class identifies |
110 // the configured system components such as CPU, WiFi adapter, etc. | 110 // the configured system components such as CPU, WiFi adapter, etc. |
111 std::string hardware_class_; | 111 std::string hardware_class_; |
112 | 112 |
113 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; | 113 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); | 115 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); |
116 }; | 116 }; |
117 | 117 |
118 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ | 118 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ |
OLD | NEW |