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

Unified Diff: net/disk_cache/blockfile/stats_histogram.h

Issue 295913014: Disk cache: Remove stats_histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/blockfile/stats.cc ('k') | net/disk_cache/blockfile/stats_histogram.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/stats_histogram.h
diff --git a/net/disk_cache/blockfile/stats_histogram.h b/net/disk_cache/blockfile/stats_histogram.h
deleted file mode 100644
index 8b9c8593252827c4d0d7a1e8d2a1cf03d3fdf4c6..0000000000000000000000000000000000000000
--- a/net/disk_cache/blockfile/stats_histogram.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_DISK_CACHE_BLOCKFILE_STATS_HISTOGRAM_H_
-#define NET_DISK_CACHE_BLOCKFILE_STATS_HISTOGRAM_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/metrics/histogram.h"
-
-namespace base {
-class BucketRanges;
-class HistogramSamples;
-class SampleVector;
-} // namespace base
-
-namespace disk_cache {
-
-class Stats;
-
-// This class provides support for sending the disk cache size stats as a UMA
-// histogram. We'll provide our own storage and management for the data, and a
-// SampleVector with a copy of our data.
-//
-// Class derivation of Histogram "deprecated," and should not be copied, and
-// may eventually go away.
-//
-class StatsHistogram : public base::Histogram {
- public:
- StatsHistogram(const std::string& name,
- Sample minimum,
- Sample maximum,
- const base::BucketRanges* ranges,
- const Stats* stats);
- virtual ~StatsHistogram();
-
- static void InitializeBucketRanges(const Stats* stats,
- base::BucketRanges* ranges);
- static StatsHistogram* FactoryGet(const std::string& name,
- const Stats* stats);
-
- // Disables this histogram when the underlying Stats go away.
- void Disable();
-
- virtual scoped_ptr<base::HistogramSamples> SnapshotSamples() const OVERRIDE;
- virtual int FindCorruption(
- const base::HistogramSamples& samples) const OVERRIDE;
-
- private:
- const Stats* stats_;
- DISALLOW_COPY_AND_ASSIGN(StatsHistogram);
-};
-
-} // namespace disk_cache
-
-#endif // NET_DISK_CACHE_BLOCKFILE_STATS_HISTOGRAM_H_
« no previous file with comments | « net/disk_cache/blockfile/stats.cc ('k') | net/disk_cache/blockfile/stats_histogram.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698