summaryrefslogtreecommitdiff
path: root/chromium/components/profile_metrics/counts.h
blob: 3fe5c565e8d8afd383a3388df71aade4cc180d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_PROFILE_METRICS_COUNTS_H_
#define COMPONENTS_PROFILE_METRICS_COUNTS_H_

#include "base/metrics/histogram_base.h"

namespace profile_metrics {

struct Counts {
  base::HistogramBase::Sample total;
  base::HistogramBase::Sample signedin;
  base::HistogramBase::Sample supervised;
  base::HistogramBase::Sample active;
  base::HistogramBase::Sample named;
  base::HistogramBase::Sample unused;
  base::HistogramBase::Sample gaia_icon;
  base::HistogramBase::Sample auth_errors;

  Counts()
      : total(0),
        signedin(0),
        supervised(0),
        active(0),
        named(0),
        unused(0),
        gaia_icon(0),
        auth_errors(0) {}
};

// Logs metrics related to |counts|.
void LogProfileMetricsCounts(const Counts& counts);

}  // namespace profile_metrics

#endif  // COMPONENTS_PROFILE_METRICS_COUNTS_H_