| 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" | |
| 16 #include "chrome/common/variations/variations_util.h" | 15 #include "chrome/common/variations/variations_util.h" |
| 17 #include "components/metrics/metrics_log_base.h" | 16 #include "components/metrics/metrics_log_base.h" |
| 18 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
| 19 | 18 |
| 20 class HashedExtensionMetrics; | |
| 21 class PrefService; | 19 class PrefService; |
| 22 | 20 |
| 23 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
| 24 class MetricsLogChromeOS; | 22 class MetricsLogChromeOS; |
| 25 #endif | 23 #endif |
| 26 | 24 |
| 27 namespace base { | 25 namespace base { |
| 28 class DictionaryValue; | 26 class DictionaryValue; |
| 29 } | 27 } |
| 30 | 28 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 base::TimeDelta incremental_uptime, | 140 base::TimeDelta incremental_uptime, |
| 143 base::TimeDelta uptime); | 141 base::TimeDelta uptime); |
| 144 | 142 |
| 145 // Used to interact with the embedder. Weak pointer; must outlive |this| | 143 // Used to interact with the embedder. Weak pointer; must outlive |this| |
| 146 // instance. | 144 // instance. |
| 147 metrics::MetricsServiceClient* const client_; | 145 metrics::MetricsServiceClient* const client_; |
| 148 | 146 |
| 149 // The time when the current log was created. | 147 // The time when the current log was created. |
| 150 const base::TimeTicks creation_time_; | 148 const base::TimeTicks creation_time_; |
| 151 | 149 |
| 152 // For including information on which extensions are installed in reports. | |
| 153 HashedExtensionMetrics extension_metrics_; | |
| 154 | |
| 155 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 150 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
| 156 }; | 151 }; |
| 157 | 152 |
| 158 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 153 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| OLD | NEW |