Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: ash/common/session/session_types.h

Issue 2538113005: mash: Move session_types.h to ash/public (Closed)
Patch Set: fix gn deps Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/session/session_state_delegate.h ('k') | ash/common/system/user/tray_user.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 ASH_COMMON_SESSION_SESSION_TYPES_H_
6 #define ASH_COMMON_SESSION_SESSION_TYPES_H_
7
8 namespace ash {
9
10 // The index of the user profile to use. The list is always LRU sorted so that
11 // index 0 is the currently active user.
12 using UserIndex = int;
13
14 // Represents possible user adding scenarios.
15 enum class AddUserSessionPolicy {
16 // Adding a user is allowed.
17 ALLOWED,
18 // Disallowed due to primary user's policy.
19 ERROR_NOT_ALLOWED_PRIMARY_USER,
20 // Disallowed due to no eligible users.
21 ERROR_NO_ELIGIBLE_USERS,
22 // Disallowed due to reaching maximum supported user.
23 ERROR_MAXIMUM_USERS_REACHED,
24 };
25
26 } // namespace ash
27
28 #endif // ASH_COMMON_SESSION_SESSION_TYPES_H_
OLDNEW
« no previous file with comments | « ash/common/session/session_state_delegate.h ('k') | ash/common/system/user/tray_user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698