OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_METRICS_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_METRICS_H_ | |
7 | |
8 #include "base/time.h" | |
9 | |
10 namespace chromeos { | |
11 | |
12 // This class gathers metrics for Kiosk Mode. | |
13 class KioskModeMetrics { | |
14 public: | |
15 static KioskModeMetrics* Get(); | |
16 | |
17 // This method records that the demo user session was started. | |
18 void SessionStarted(); | |
19 | |
20 // This method records that the demo user session was ended. | |
21 void SessionEnded(); | |
22 | |
23 // This method records that the user opened an app. | |
24 void UserOpenedApp(); | |
25 | |
26 private: | |
27 KioskModeMetrics(); | |
28 ~KioskModeMetrics(); | |
29 | |
30 base::Time session_started_; | |
31 size_t apps_opened_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(KioskModeMetrics); | |
34 }; | |
35 | |
36 } // namespace chromeos | |
37 | |
38 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_METRICS_H_ | |
OLD | NEW |