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

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

Issue 10703037: Move StatisticsRecorder out of histogram.cc/h for further refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/curvecp/curvecp_transfer_unittest.cc ('k') | net/socket_stream/socket_stream_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698