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 // SampleVector implements HistogramSamples interface. It is used by all | 5 // SampleVector implements HistogramSamples interface. It is used by all |
6 // Histogram based classes to store samples. | 6 // Histogram based classes to store samples. |
7 | 7 |
8 #ifndef BASE_METRICS_SAMPLE_VECTOR_H_ | 8 #ifndef BASE_METRICS_SAMPLE_VECTOR_H_ |
9 #define BASE_METRICS_SAMPLE_VECTOR_H_ | 9 #define BASE_METRICS_SAMPLE_VECTOR_H_ |
10 | 10 |
| 11 #include <stddef.h> |
11 #include <stdint.h> | 12 #include <stdint.h> |
| 13 |
12 #include <vector> | 14 #include <vector> |
13 | 15 |
14 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
15 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
17 #include "base/metrics/histogram_base.h" | 20 #include "base/metrics/histogram_base.h" |
18 #include "base/metrics/histogram_samples.h" | 21 #include "base/metrics/histogram_samples.h" |
19 | 22 |
20 namespace base { | 23 namespace base { |
21 | 24 |
22 class BucketRanges; | 25 class BucketRanges; |
23 | 26 |
24 class BASE_EXPORT SampleVector : public HistogramSamples { | 27 class BASE_EXPORT SampleVector : public HistogramSamples { |
25 public: | 28 public: |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const HistogramBase::AtomicCount* counts_; | 95 const HistogramBase::AtomicCount* counts_; |
93 size_t counts_size_; | 96 size_t counts_size_; |
94 const BucketRanges* bucket_ranges_; | 97 const BucketRanges* bucket_ranges_; |
95 | 98 |
96 size_t index_; | 99 size_t index_; |
97 }; | 100 }; |
98 | 101 |
99 } // namespace base | 102 } // namespace base |
100 | 103 |
101 #endif // BASE_METRICS_SAMPLE_VECTOR_H_ | 104 #endif // BASE_METRICS_SAMPLE_VECTOR_H_ |
OLD | NEW |