| 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 #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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const base::BucketRanges* ranges, | 36 const base::BucketRanges* ranges, |
| 37 const Stats* stats); | 37 const Stats* stats); |
| 38 virtual ~StatsHistogram(); | 38 virtual ~StatsHistogram(); |
| 39 | 39 |
| 40 static void InitializeBucketRanges(const Stats* stats, | 40 static void InitializeBucketRanges(const Stats* stats, |
| 41 base::BucketRanges* ranges); | 41 base::BucketRanges* ranges); |
| 42 static StatsHistogram* FactoryGet(const std::string& name, | 42 static StatsHistogram* FactoryGet(const std::string& name, |
| 43 const Stats* stats); | 43 const Stats* stats); |
| 44 | 44 |
| 45 virtual scoped_ptr<base::HistogramSamples> SnapshotSamples() const OVERRIDE; | 45 virtual scoped_ptr<base::HistogramSamples> SnapshotSamples() const OVERRIDE; |
| 46 virtual Inconsistencies FindCorruption( | 46 virtual int FindCorruption( |
| 47 const base::HistogramSamples& samples) const OVERRIDE; | 47 const base::HistogramSamples& samples) const OVERRIDE; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 const Stats* stats_; | 50 const Stats* stats_; |
| 51 DISALLOW_COPY_AND_ASSIGN(StatsHistogram); | 51 DISALLOW_COPY_AND_ASSIGN(StatsHistogram); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace disk_cache | 54 } // namespace disk_cache |
| 55 | 55 |
| 56 #endif // NET_DISK_CACHE_STATS_HISTOGRAM_H_ | 56 #endif // NET_DISK_CACHE_STATS_HISTOGRAM_H_ |
| OLD | NEW |