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

Side by Side Diff: components/metrics/single_value_histograms_provider.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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698