| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_METRICS_HELPERS_H_ | 8 #ifndef CHROME_COMMON_METRICS_HELPERS_H_ |
| 9 #define CHROME_COMMON_METRICS_HELPERS_H_ | 9 #define CHROME_COMMON_METRICS_HELPERS_H_ |
| 10 #pragma once | 10 #pragma once |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // Called when we close a log. | 229 // Called when we close a log. |
| 230 void RecordCurrentHistograms(); | 230 void RecordCurrentHistograms(); |
| 231 | 231 |
| 232 // Manager for the various in-flight logs. | 232 // Manager for the various in-flight logs. |
| 233 MetricsLogManager log_manager_; | 233 MetricsLogManager log_manager_; |
| 234 | 234 |
| 235 private: | 235 private: |
| 236 // HistogramSender interface (override) methods. | 236 // HistogramSender interface (override) methods. |
| 237 virtual void TransmitHistogramDelta( | 237 virtual void TransmitHistogramDelta( |
| 238 const base::Histogram& histogram, | 238 const base::Histogram& histogram, |
| 239 const base::Histogram::SampleSet& snapshot); | 239 const base::Histogram::SampleSet& snapshot) OVERRIDE; |
| 240 virtual void InconsistencyDetected(int problem); | 240 virtual void InconsistencyDetected(int problem) OVERRIDE; |
| 241 virtual void UniqueInconsistencyDetected(int problem); | 241 virtual void UniqueInconsistencyDetected(int problem) OVERRIDE; |
| 242 virtual void SnapshotProblemResolved(int amount); | 242 virtual void SnapshotProblemResolved(int amount) OVERRIDE; |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(MetricsServiceBase); | 244 DISALLOW_COPY_AND_ASSIGN(MetricsServiceBase); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 #endif // CHROME_COMMON_METRICS_HELPERS_H_ | 247 #endif // CHROME_COMMON_METRICS_HELPERS_H_ |
| OLD | NEW |