Index: ash/session_state_delegate.h |
diff --git a/ash/session_state_delegate.h b/ash/session_state_delegate.h |
index f0e7f22f42005c677abf234299ce8a4955a7c278..48e68ccdf1c7f58627cb40197e5b2c8100179a29 100644 |
--- a/ash/session_state_delegate.h |
+++ b/ash/session_state_delegate.h |
@@ -45,6 +45,21 @@ class ASH_EXPORT SessionStateDelegate { |
CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user. |
}; |
+ // Defines session state i.e. whether session is running or not and |
+ // whether user session is blocked by things like multi-profile login. |
+ enum SessionState { |
+ // When primary user login UI is shown i.e. after boot or sign out, |
+ // no active user session exists yet. |
+ SESSION_STATE_LOGIN_PRIMARY = 0, |
+ |
+ // Inside user session, no blocking UI (login/lock) is shown. |
Daniel Erat
2014/04/11 14:43:41
update this comment since this now includes the lo
Nikita (slow)
2014/04/14 08:53:16
Done.
|
+ SESSION_STATE_ACTIVE, |
+ |
+ // When secondary user login UI is shown i.e. other users are |
+ // already logged in and is currently adding another user to the session. |
+ SESSION_STATE_LOGIN_SECONDARY, |
+ }; |
+ |
virtual ~SessionStateDelegate() {}; |
// Returns the browser context for the user given by |index|. |
@@ -89,6 +104,9 @@ class ASH_EXPORT SessionStateDelegate { |
// session. |
virtual bool IsUserSessionBlocked() const = 0; |
+ // Returns current session state. |
+ virtual SessionState GetSessionState() const = 0; |
+ |
// Gets the displayed name for the user with the given |index|. |
// Note that |index| can at maximum be |NumberOfLoggedInUsers() - 1|. |
virtual const base::string16 GetUserDisplayName( |