| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file defines a set of user experience metrics data recorded by | 5 // This file defines a set of user experience metrics data recorded by |
| 6 // the MetricsService. This is the unit of data that is sent to the server. | 6 // the MetricsService. This is the unit of data that is sent to the server. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "chrome/browser/metrics/extension_metrics.h" | 15 #include "chrome/browser/metrics/extensions_metrics_provider.h" |
| 16 #include "chrome/browser/metrics/metrics_network_observer.h" | 16 #include "chrome/browser/metrics/metrics_network_observer.h" |
| 17 #include "chrome/common/metrics/variations/variations_util.h" | 17 #include "chrome/common/metrics/variations/variations_util.h" |
| 18 #include "chrome/installer/util/google_update_settings.h" | 18 #include "chrome/installer/util/google_update_settings.h" |
| 19 #include "components/metrics/metrics_log_base.h" | 19 #include "components/metrics/metrics_log_base.h" |
| 20 #include "ui/gfx/size.h" | 20 #include "ui/gfx/size.h" |
| 21 | 21 |
| 22 class HashedExtensionMetrics; | |
| 23 class MetricsNetworkObserver; | 22 class MetricsNetworkObserver; |
| 24 struct OmniboxLog; | 23 struct OmniboxLog; |
| 25 class PrefService; | 24 class PrefService; |
| 26 class PrefRegistrySimple; | 25 class PrefRegistrySimple; |
| 27 | 26 |
| 28 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
| 29 class MetricsLogChromeOS; | 28 class MetricsLogChromeOS; |
| 30 #endif | 29 #endif |
| 31 | 30 |
| 32 namespace base { | 31 namespace base { |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Writes info about the Google Update install that is managing this client. | 191 // Writes info about the Google Update install that is managing this client. |
| 193 // This is a no-op if called on a non-Windows platform. | 192 // This is a no-op if called on a non-Windows platform. |
| 194 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); | 193 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); |
| 195 | 194 |
| 196 // Observes network state to provide values for SystemProfile::Network. | 195 // Observes network state to provide values for SystemProfile::Network. |
| 197 MetricsNetworkObserver network_observer_; | 196 MetricsNetworkObserver network_observer_; |
| 198 | 197 |
| 199 // The time when the current log was created. | 198 // The time when the current log was created. |
| 200 const base::TimeTicks creation_time_; | 199 const base::TimeTicks creation_time_; |
| 201 | 200 |
| 202 // For including information on which extensions are installed in reports. | |
| 203 HashedExtensionMetrics extension_metrics_; | |
| 204 | |
| 205 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 201 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
| 206 }; | 202 }; |
| 207 | 203 |
| 208 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 204 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| OLD | NEW |