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

Side by Side Diff: base/metrics/histogram.h

Issue 2639313002: Migrate desktop Linux to histogram_macros.h include. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | components/storage_monitor/storage_monitor_linux.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 // Histogram is an object that aggregates statistics, and can summarize them in 5 // Histogram is an object that aggregates statistics, and can summarize them in
6 // various forms, including ASCII graphical, HTML, and numerically (as a 6 // various forms, including ASCII graphical, HTML, and numerically (as a
7 // vector of numbers corresponding to each of the aggregating buckets). 7 // vector of numbers corresponding to each of the aggregating buckets).
8 8
9 // It supports calls to accumulate either time intervals (which are processed 9 // It supports calls to accumulate either time intervals (which are processed
10 // as integral number of milliseconds), or arbitrary integral units. 10 // as integral number of milliseconds), or arbitrary integral units.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include <string> 74 #include <string>
75 #include <vector> 75 #include <vector>
76 76
77 #include "base/base_export.h" 77 #include "base/base_export.h"
78 #include "base/compiler_specific.h" 78 #include "base/compiler_specific.h"
79 #include "base/gtest_prod_util.h" 79 #include "base/gtest_prod_util.h"
80 #include "base/logging.h" 80 #include "base/logging.h"
81 #include "base/macros.h" 81 #include "base/macros.h"
82 #include "base/metrics/bucket_ranges.h" 82 #include "base/metrics/bucket_ranges.h"
83 #include "base/metrics/histogram_base.h" 83 #include "base/metrics/histogram_base.h"
84 #if !defined(OS_MACOSX) || defined(OS_IOS) 84 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) || defined(OS_IOS) || \
85 defined(OS_WIN)
85 // TODO(asvitkine): Migrate callers to to include this directly and remove this. 86 // TODO(asvitkine): Migrate callers to to include this directly and remove this.
86 // Note: Incrementally migrating platforms as they become clean. 87 // Note: Incrementally migrating platforms as they become clean.
87 #include "base/metrics/histogram_macros.h" 88 #include "base/metrics/histogram_macros.h"
88 #endif 89 #endif
89 #include "base/metrics/histogram_samples.h" 90 #include "base/metrics/histogram_samples.h"
90 #include "base/time/time.h" 91 #include "base/time/time.h"
91 92
92 namespace base { 93 namespace base {
93 94
94 class BooleanHistogram; 95 class BooleanHistogram;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter); 546 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter);
546 547
547 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges); 548 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges);
548 549
549 DISALLOW_COPY_AND_ASSIGN(CustomHistogram); 550 DISALLOW_COPY_AND_ASSIGN(CustomHistogram);
550 }; 551 };
551 552
552 } // namespace base 553 } // namespace base
553 554
554 #endif // BASE_METRICS_HISTOGRAM_H_ 555 #endif // BASE_METRICS_HISTOGRAM_H_
OLDNEW
« no previous file with comments | « no previous file | components/storage_monitor/storage_monitor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698