Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: net/disk_cache/stats_histogram.h

Issue 12207058: Connect SparseHistogram with the rest of stats system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dbus/signal_sender_verification_unittest.cc ('k') | net/disk_cache/stats_histogram.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « dbus/signal_sender_verification_unittest.cc ('k') | net/disk_cache/stats_histogram.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698