blob: f385fea8b8a9464ed8545a0c563da4473ea0af54 [file] [log] [blame]
Ben Chancb3563e2013-09-12 23:20:34 -07001// Copyright (c) 2013 The Chromium OS 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 MIST_METRICS_H_
6#define MIST_METRICS_H_
7
Ben Chan4746c8a2014-09-02 20:34:58 -07008#include <base/macros.h>
Ben Chancb3563e2013-09-12 23:20:34 -07009#include <metrics/metrics_library.h>
10
11namespace mist {
12
13// A class for collecting mist related UMA metrics.
14class Metrics {
15 public:
16 Metrics();
Qijiang Fan6bc59e12020-11-11 02:51:06 +090017 Metrics(const Metrics&) = delete;
18 Metrics& operator=(const Metrics&) = delete;
19
Ben Chana4c8c962014-08-13 20:36:10 -070020 ~Metrics() = default;
Ben Chancb3563e2013-09-12 23:20:34 -070021
22 void RecordSwitchResult(bool success);
23
24 private:
25 MetricsLibrary metrics_library_;
Ben Chancb3563e2013-09-12 23:20:34 -070026};
27
28} // namespace mist
29
30#endif // MIST_METRICS_H_