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_SAMPLES_H_ | 5 #ifndef BASE_METRICS_HISTOGRAM_SAMPLES_H_ |
6 #define BASE_METRICS_HISTOGRAM_SAMPLES_H_ | 6 #define BASE_METRICS_HISTOGRAM_SAMPLES_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include "base/atomicops.h" | 11 #include "base/atomicops.h" |
9 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" |
10 #include "base/metrics/histogram_base.h" | 14 #include "base/metrics/histogram_base.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 | 15 |
13 namespace base { | 16 namespace base { |
14 | 17 |
15 class Pickle; | 18 class Pickle; |
16 class PickleIterator; | 19 class PickleIterator; |
17 class SampleCountIterator; | 20 class SampleCountIterator; |
18 | 21 |
19 // HistogramSamples is a container storing all samples of a histogram. | 22 // HistogramSamples is a container storing all samples of a histogram. |
20 class BASE_EXPORT HistogramSamples { | 23 class BASE_EXPORT HistogramSamples { |
21 public: | 24 public: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 109 |
107 // Get the index of current histogram bucket. | 110 // Get the index of current histogram bucket. |
108 // For histograms that don't use predefined buckets, it returns false. | 111 // For histograms that don't use predefined buckets, it returns false. |
109 // Requires: !Done(); | 112 // Requires: !Done(); |
110 virtual bool GetBucketIndex(size_t* index) const; | 113 virtual bool GetBucketIndex(size_t* index) const; |
111 }; | 114 }; |
112 | 115 |
113 } // namespace base | 116 } // namespace base |
114 | 117 |
115 #endif // BASE_METRICS_HISTOGRAM_SAMPLES_H_ | 118 #endif // BASE_METRICS_HISTOGRAM_SAMPLES_H_ |
OLD | NEW |