OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/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/statistics_recorder.h" |
9 #include "net/disk_cache/stats.h" | 10 #include "net/disk_cache/stats.h" |
10 | 11 |
11 namespace disk_cache { | 12 namespace disk_cache { |
12 | 13 |
13 using base::Histogram; | 14 using base::Histogram; |
14 using base::StatisticsRecorder; | 15 using base::StatisticsRecorder; |
15 | 16 |
16 // Static. | 17 // Static. |
17 const Stats* StatsHistogram::stats_ = NULL; | 18 const Stats* StatsHistogram::stats_ = NULL; |
18 | 19 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 return NO_INCONSISTENCIES; // This class won't monitor inconsistencies. | 90 return NO_INCONSISTENCIES; // This class won't monitor inconsistencies. |
90 } | 91 } |
91 | 92 |
92 uint32 StatsHistogram::CalculateRangeChecksum() const { | 93 uint32 StatsHistogram::CalculateRangeChecksum() const { |
93 // We don't calculate checksums, so at least establish a unique constant. | 94 // We don't calculate checksums, so at least establish a unique constant. |
94 const uint32 kStatsHistogramChecksum = 0x0cecce; | 95 const uint32 kStatsHistogramChecksum = 0x0cecce; |
95 return kStatsHistogramChecksum; | 96 return kStatsHistogramChecksum; |
96 } | 97 } |
97 | 98 |
98 } // namespace disk_cache | 99 } // namespace disk_cache |
OLD | NEW |