| 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 #ifndef BASE_METRICS_HISTOGRAM_SNAPSHOT_MANAGER_H_ | 5 #ifndef BASE_METRICS_HISTOGRAM_SNAPSHOT_MANAGER_H_ |
| 6 #define BASE_METRICS_HISTOGRAM_SNAPSHOT_MANAGER_H_ | 6 #define BASE_METRICS_HISTOGRAM_SNAPSHOT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
| 12 #include "base/metrics/histogram_base.h" | 14 #include "base/metrics/histogram_base.h" |
| 13 | 15 |
| 14 namespace base { | 16 namespace base { |
| 15 | 17 |
| 16 class HistogramSamples; | 18 class HistogramSamples; |
| 17 class HistogramFlattener; | 19 class HistogramFlattener; |
| 18 | 20 |
| 19 // HistogramSnapshotManager handles the logistics of gathering up available | 21 // HistogramSnapshotManager handles the logistics of gathering up available |
| 20 // histograms for recording either to disk or for transmission (such as from | 22 // histograms for recording either to disk or for transmission (such as from |
| 21 // renderer to browser, or from browser to UMA upload). Since histograms can sit | 23 // renderer to browser, or from browser to UMA upload). Since histograms can sit |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // |histogram_flattener_| handles the logistics of recording the histogram | 60 // |histogram_flattener_| handles the logistics of recording the histogram |
| 59 // deltas. | 61 // deltas. |
| 60 HistogramFlattener* histogram_flattener_; // Weak. | 62 HistogramFlattener* histogram_flattener_; // Weak. |
| 61 | 63 |
| 62 DISALLOW_COPY_AND_ASSIGN(HistogramSnapshotManager); | 64 DISALLOW_COPY_AND_ASSIGN(HistogramSnapshotManager); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace base | 67 } // namespace base |
| 66 | 68 |
| 67 #endif // BASE_METRICS_HISTOGRAM_SNAPSHOT_MANAGER_H_ | 69 #endif // BASE_METRICS_HISTOGRAM_SNAPSHOT_MANAGER_H_ |
| OLD | NEW |