OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 #ifndef NET_DISK_CACHE_STATS_HISTOGRAM_H_ | 5 #ifndef NET_DISK_CACHE_STATS_HISTOGRAM_H_ |
6 #define NET_DISK_CACHE_STATS_HISTOGRAM_H_ | 6 #define NET_DISK_CACHE_STATS_HISTOGRAM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 static scoped_refptr<StatsHistogram> | 38 static scoped_refptr<StatsHistogram> |
39 StatsHistogramFactoryGet(const std::string& name); | 39 StatsHistogramFactoryGet(const std::string& name); |
40 | 40 |
41 // We'll be reporting data from the given set of cache stats. | 41 // We'll be reporting data from the given set of cache stats. |
42 bool Init(const Stats* stats); | 42 bool Init(const Stats* stats); |
43 | 43 |
44 virtual Sample ranges(size_t i) const; | 44 virtual Sample ranges(size_t i) const; |
45 virtual size_t bucket_count() const; | 45 virtual size_t bucket_count() const; |
46 virtual void SnapshotSample(SampleSet* sample) const; | 46 virtual void SnapshotSample(SampleSet* sample) const; |
47 virtual Inconsistencies FindCorruption(const SampleSet& snapshot) const; | 47 virtual Inconsistencies FindCorruption(const SampleSet& snapshot) const; |
| 48 virtual uint32 CalculateRangeChecksum() const; |
48 | 49 |
49 private: | 50 private: |
50 bool init_; | 51 bool init_; |
51 static const Stats* stats_; | 52 static const Stats* stats_; |
52 DISALLOW_COPY_AND_ASSIGN(StatsHistogram); | 53 DISALLOW_COPY_AND_ASSIGN(StatsHistogram); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace disk_cache | 56 } // namespace disk_cache |
56 | 57 |
57 #endif // NET_DISK_CACHE_STATS_HISTOGRAM_H_ | 58 #endif // NET_DISK_CACHE_STATS_HISTOGRAM_H_ |
OLD | NEW |