Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: base/metrics/sample_vector.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/metrics/sample_map.h ('k') | base/metrics/sample_vector_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/metrics/sample_map.h ('k') | base/metrics/sample_vector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698