| Index: chromeos/login_event_recorder.h
|
| diff --git a/chromeos/login_event_recorder.h b/chromeos/login_event_recorder.h
|
| index ec695b4d9359ce03908ba9b2e5f1cb3366fea1e7..f4d0f8b072916217e089901a3dc78b4d4f649d8f 100644
|
| --- a/chromeos/login_event_recorder.h
|
| +++ b/chromeos/login_event_recorder.h
|
| @@ -18,8 +18,18 @@ class CHROMEOS_EXPORT LoginEventRecorder {
|
| public:
|
| class Delegate {
|
| public:
|
| + // Add a time marker for login. A timeline will be dumped to
|
| + // /tmp/login-times-sent after login is done. If |send_to_uma| is true
|
| + // the time between this marker and the last will be sent to UMA with
|
| + // the identifier BootTime.|marker_name|.
|
| virtual void AddLoginTimeMarker(const std::string& marker_name,
|
| bool send_to_uma) = 0;
|
| +
|
| + // Record events for successful authentication.
|
| + virtual void RecordAuthenticationSuccess() = 0;
|
| +
|
| + // Record events for authentication failure.
|
| + virtual void RecordAuthenticationFailure() = 0;
|
| };
|
| LoginEventRecorder();
|
| virtual ~LoginEventRecorder();
|
| @@ -34,6 +44,12 @@ class CHROMEOS_EXPORT LoginEventRecorder {
|
| // the identifier BootTime.|marker_name|.
|
| void AddLoginTimeMarker(const std::string& marker_name, bool send_to_uma);
|
|
|
| + // Record events for successful authentication.
|
| + void RecordAuthenticationSuccess();
|
| +
|
| + // Record events for authentication failure.
|
| + void RecordAuthenticationFailure();
|
| +
|
| private:
|
| Delegate* delegate_;
|
|
|
|
|