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

Side by Side Diff: components/metrics/single_value_histograms_factory_impl.h

Issue 2687583002: Add support for single sample metrics. (Closed)
Patch Set: Redesign! Created 3 years, 8 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698