Chromium Code Reviews| Index: components/session_manager/session_manager_types.h |
| diff --git a/components/session_manager/session_manager_types.h b/components/session_manager/session_manager_types.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a4a83eab6467e43c271ba8e7be672d414541a3c1 |
| --- /dev/null |
| +++ b/components/session_manager/session_manager_types.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_SESSION_MANAGER_SESSION_MANAGER_TYPES_H_ |
| +#define COMPONENTS_SESSION_MANAGER_SESSION_MANAGER_TYPES_H_ |
| + |
| +namespace session_manager { |
| + |
| +// TODO(nkostylev): Get rid/consolidate with chromeos::LoggedInState. |
|
achuithb
2016/10/17 22:27:22
Can probably get rid of nkostylev since he's not g
stevenjb
2016/10/17 22:59:34
Achuith, are you volunteering? :) You can go ahead
xiyuan
2016/10/17 23:17:28
I put my name here for now and could get to it aft
|
| +enum class SessionState { |
| + // Default value, when session state hasn't been initialized yet. |
| + UNKNOWN = 0, |
| + |
| + // Running out of box UI. |
| + OOBE, |
| + |
| + // Running login UI (primary user) but user sign in hasn't completed yet. |
| + LOGIN_PRIMARY, |
| + |
| + // Running login UI (primary or secondary user), user sign in has been |
| + // completed but login UI hasn't been hidden yet. This means that either |
| + // some session initialization is happening or user has to go through some |
| + // UI flow on the same login UI like select avatar, agree to terms of |
| + // service etc. |
| + LOGGED_IN_NOT_ACTIVE, |
| + |
| + // A user(s) has logged in *and* login UI is hidden i.e. user session is |
| + // not blocked. |
| + ACTIVE, |
| + |
| + // Same as SESSION_STATE_LOGIN_PRIMARY but for multi-profiles sign in i.e. |
| + // when there's at least one user already active in the session. |
| + LOGIN_SECONDARY, |
| +}; |
| + |
| +} // namespace session_manager |
| + |
| +#endif // COMPONENTS_SESSION_MANAGER_SESSION_MANAGER_TYPES_H_ |