| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 | 11 |
| 12 #include <map> | 12 #include <map> |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "chrome/common/page_transition_types.h" | 19 #include "content/common/page_transition_types.h" |
| 20 | 20 |
| 21 class GURL; | 21 class GURL; |
| 22 class MetricsLog; | 22 class MetricsLog; |
| 23 | 23 |
| 24 // This class provides base functionality for logging metrics data. | 24 // This class provides base functionality for logging metrics data. |
| 25 class MetricsLogBase { | 25 class MetricsLogBase { |
| 26 public: | 26 public: |
| 27 // Creates a new metrics log | 27 // Creates a new metrics log |
| 28 // client_id is the identifier for this profile on this installation | 28 // client_id is the identifier for this profile on this installation |
| 29 // session_id is an integer that's incremented on each application launch | 29 // session_id is an integer that's incremented on each application launch |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 const base::Histogram& histogram, | 266 const base::Histogram& histogram, |
| 267 const base::Histogram::SampleSet& snapshot); | 267 const base::Histogram::SampleSet& snapshot); |
| 268 virtual void InconsistencyDetected(int problem); | 268 virtual void InconsistencyDetected(int problem); |
| 269 virtual void UniqueInconsistencyDetected(int problem); | 269 virtual void UniqueInconsistencyDetected(int problem); |
| 270 virtual void SnapshotProblemResolved(int amount); | 270 virtual void SnapshotProblemResolved(int amount); |
| 271 | 271 |
| 272 DISALLOW_COPY_AND_ASSIGN(MetricsServiceBase); | 272 DISALLOW_COPY_AND_ASSIGN(MetricsServiceBase); |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 #endif // CHROME_COMMON_METRICS_HELPERS_H_ | 275 #endif // CHROME_COMMON_METRICS_HELPERS_H_ |
| OLD | NEW |