| 6 | #define BASE_METRICS_HISTOGRAM_FLATTENER_H_ |
| 7 |
| 8 | #include <map> |
| 9 | #include <string> |
| 10 |
| 11 | #include "base/macros.h" |
| 12 | #include "base/metrics/histogram.h" |
| 13 |
| 14 | namespace base { |
| 15 |
| 16 | class HistogramSamples; |
| 17 |
| 18 | // HistogramFlattener is an interface used by HistogramSnapshotManager, which |
| 19 | // handles the logistics of gathering up available histograms for recording. |
| 20 | class BASE_EXPORT HistogramFlattener { |
| 21 | public: |
| 22 | virtual ~HistogramFlattener() = default; |
| 23 |
| 24 | virtual void RecordDelta(const HistogramBase& histogram, |
| 25 | const HistogramSamples& snapshot) = 0; |
| 26 |
| 27 | protected: |
| 28 | HistogramFlattener() = default; |
| 29 |
| 30 | private: |
| 31 | DISALLOW_COPY_AND_ASSIGN(HistogramFlattener); |
| 32 | }; |
| 33 |
| 34 | } // namespace base |
| 35 |
| 36 | #endif // BASE_METRICS_HISTOGRAM_FLATTENER_H_ |
| 37 |