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 "net/disk_cache/stats_histogram.h" | 5 #include "net/disk_cache/blockfile/stats_histogram.h" |
6 | 6 |
7 #include "base/debug/leak_annotations.h" | 7 #include "base/debug/leak_annotations.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/bucket_ranges.h" | 9 #include "base/metrics/bucket_ranges.h" |
10 #include "base/metrics/histogram_base.h" | 10 #include "base/metrics/histogram_base.h" |
11 #include "base/metrics/sample_vector.h" | 11 #include "base/metrics/sample_vector.h" |
12 #include "base/metrics/statistics_recorder.h" | 12 #include "base/metrics/statistics_recorder.h" |
13 #include "net/disk_cache/stats.h" | 13 #include "net/disk_cache/blockfile/stats.h" |
14 | 14 |
15 namespace disk_cache { | 15 namespace disk_cache { |
16 | 16 |
17 using base::BucketRanges; | 17 using base::BucketRanges; |
18 using base::Histogram; | 18 using base::Histogram; |
19 using base::HistogramSamples; | 19 using base::HistogramSamples; |
20 using base::SampleVector; | 20 using base::SampleVector; |
21 using base::StatisticsRecorder; | 21 using base::StatisticsRecorder; |
22 | 22 |
23 StatsHistogram::StatsHistogram(const std::string& name, | 23 StatsHistogram::StatsHistogram(const std::string& name, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 return samples.PassAs<HistogramSamples>(); | 86 return samples.PassAs<HistogramSamples>(); |
87 } | 87 } |
88 | 88 |
89 int StatsHistogram::FindCorruption(const HistogramSamples& samples) const { | 89 int StatsHistogram::FindCorruption(const HistogramSamples& samples) const { |
90 // This class won't monitor inconsistencies. | 90 // This class won't monitor inconsistencies. |
91 return HistogramBase::NO_INCONSISTENCIES; | 91 return HistogramBase::NO_INCONSISTENCIES; |
92 } | 92 } |
93 | 93 |
94 } // namespace disk_cache | 94 } // namespace disk_cache |
OLD | NEW |