OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_METRICS_SINGLE_VALUE_HISTOGRAMS_PROVIDER_H_ |
| 6 #define COMPONENTS_METRICS_SINGLE_VALUE_HISTOGRAMS_PROVIDER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/metrics/histogram_base.h" |
| 10 #include "components/metrics/public/interfaces/single_value_histograms.mojom.h" |
| 11 |
| 12 namespace metrics { |
| 13 |
| 14 class SingleValueHistogramsProvider |
| 15 : public mojom::SingleValueHistogramsProvider { |
| 16 public: |
| 17 static void Create(mojom::SingleValueHistogramsProviderRequest request); |
| 18 |
| 19 SingleValueHistogramsProvider(); |
| 20 ~SingleValueHistogramsProvider() override; |
| 21 |
| 22 private: |
| 23 void AcquireSingleValueCountsHistogram( |
| 24 const std::string& name, |
| 25 base::HistogramBase::Sample min, |
| 26 base::HistogramBase::Sample max, |
| 27 uint32_t bucket_count, |
| 28 mojom::SingleValueCountsHistogramRequest request) override; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(SingleValueHistogramsProvider); |
| 31 }; |
| 32 |
| 33 } // namespace metrics |
| 34 |
| 35 #endif // COMPONENTS_METRICS_SINGLE_VALUE_HISTOGRAMS_PROVIDER_H_ |
OLD | NEW |