Ben Chan | cb3563e | 2013-09-12 23:20:34 -0700 | [diff] [blame] | 1 | // 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 Chan | 4746c8a | 2014-09-02 20:34:58 -0700 | [diff] [blame] | 8 | #include <base/macros.h> |
Ben Chan | cb3563e | 2013-09-12 23:20:34 -0700 | [diff] [blame] | 9 | #include <metrics/metrics_library.h> |
| 10 | |
| 11 | namespace mist { |
| 12 | |
| 13 | // A class for collecting mist related UMA metrics. |
| 14 | class Metrics { |
| 15 | public: |
| 16 | Metrics(); |
Ben Chan | a4c8c96 | 2014-08-13 20:36:10 -0700 | [diff] [blame] | 17 | ~Metrics() = default; |
Ben Chan | cb3563e | 2013-09-12 23:20:34 -0700 | [diff] [blame] | 18 | |
| 19 | void RecordSwitchResult(bool success); |
| 20 | |
| 21 | private: |
| 22 | MetricsLibrary metrics_library_; |
| 23 | |
| 24 | DISALLOW_COPY_AND_ASSIGN(Metrics); |
| 25 | }; |
| 26 | |
| 27 | } // namespace mist |
| 28 | |
| 29 | #endif // MIST_METRICS_H_ |