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_HISTOGRAM_FACTORY_IMPL_H_ |
| 6 #define COMPONENTS_METRICS_SINGLE_VALUE_HISTOGRAM_FACTORY_IMPL_H_ |
| 7 |
| 8 #include "base/metrics/single_value_histograms.h" |
| 9 #include "components/metrics/public/interfaces/single_value_histograms.mojom.h" |
| 10 |
| 11 namespace metrics { |
| 12 |
| 13 class BASE_EXPORT SingleValueHistogramsFactoryImpl |
| 14 : public base::SingleValueHistogramsFactory { |
| 15 public: |
| 16 SingleValueHistogramsFactoryImpl( |
| 17 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 18 mojom::SingleValueHistogramsProviderPtr metric_provider); |
| 19 ~SingleValueHistogramsFactoryImpl() override; |
| 20 |
| 21 // base::SingleValueHistogramsFactory implementation. |
| 22 std::unique_ptr<base::SingleValueCountsHistogram> |
| 23 CreateSingleValueCountsHistogram(const std::string& name, |
| 24 base::HistogramBase::Sample min, |
| 25 base::HistogramBase::Sample max, |
| 26 uint32_t bucket_count) override; |
| 27 |
| 28 private: |
| 29 mojom::SingleValueHistogramsProviderPtr provider_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(SingleValueHistogramsFactoryImpl); |
| 32 }; |
| 33 |
| 34 } // namespace metrics |
| 35 |
| 36 #endif // COMPONENTS_METRICS_SINGLE_VALUE_HISTOGRAM_FACTORY_IMPL_H_ |
OLD | NEW |