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 #include "base/metrics/histogram_samples.h" | 5 #include "base/metrics/histogram_samples.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 class SampleCountPickleIterator : public SampleCountIterator { | 14 class SampleCountPickleIterator : public SampleCountIterator { |
15 public: | 15 public: |
16 SampleCountPickleIterator(PickleIterator* iter); | 16 explicit SampleCountPickleIterator(PickleIterator* iter); |
17 | 17 |
18 virtual bool Done() const OVERRIDE; | 18 virtual bool Done() const OVERRIDE; |
19 virtual void Next() OVERRIDE; | 19 virtual void Next() OVERRIDE; |
20 virtual void Get(HistogramBase::Sample* min, | 20 virtual void Get(HistogramBase::Sample* min, |
21 HistogramBase::Sample* max, | 21 HistogramBase::Sample* max, |
22 HistogramBase::Count* count) const OVERRIDE; | 22 HistogramBase::Count* count) const OVERRIDE; |
23 private: | 23 private: |
24 PickleIterator* const iter_; | 24 PickleIterator* const iter_; |
25 | 25 |
26 HistogramBase::Sample min_; | 26 HistogramBase::Sample min_; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 117 } |
118 | 118 |
119 SampleCountIterator::~SampleCountIterator() {} | 119 SampleCountIterator::~SampleCountIterator() {} |
120 | 120 |
121 bool SampleCountIterator::GetBucketIndex(size_t* index) const { | 121 bool SampleCountIterator::GetBucketIndex(size_t* index) const { |
122 DCHECK(!Done()); | 122 DCHECK(!Done()); |
123 return false; | 123 return false; |
124 } | 124 } |
125 | 125 |
126 } // namespace base | 126 } // namespace base |
OLD | NEW |