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

Side by Side Diff: chromeos/login/login_state.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chromeos/login/auth/mock_authenticator.cc ('k') | chromeos/login/login_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_LOGIN_LOGIN_STATE_H_ 5 #ifndef CHROMEOS_LOGIN_LOGIN_STATE_H_
6 #define CHROMEOS_LOGIN_LOGIN_STATE_H_ 6 #define CHROMEOS_LOGIN_LOGIN_STATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 // Tracks the login state of chrome, accessible to Ash and other chromeos code. 14 // Tracks the login state of chrome, accessible to Ash and other chromeos code.
15 class CHROMEOS_EXPORT LoginState { 15 class CHROMEOS_EXPORT LoginState {
16 public: 16 public:
17 enum LoggedInState { 17 enum LoggedInState {
18 LOGGED_IN_NONE, // Not logged in 18 LOGGED_IN_NONE, // Not logged in
19 LOGGED_IN_SAFE_MODE, // Not logged in and login not allowed for non-owners 19 LOGGED_IN_SAFE_MODE, // Not logged in and login not allowed for non-owners
20 LOGGED_IN_ACTIVE // A user has logged in 20 LOGGED_IN_ACTIVE // A user has logged in
21 }; 21 };
22 22
23 enum LoggedInUserType { 23 enum LoggedInUserType {
24 LOGGED_IN_USER_NONE, // User is not logged in 24 LOGGED_IN_USER_NONE, // User is not logged in
25 LOGGED_IN_USER_REGULAR, // A regular user is logged in 25 LOGGED_IN_USER_REGULAR, // A regular user is logged in
26 LOGGED_IN_USER_OWNER, // The owner of the device is logged in 26 LOGGED_IN_USER_OWNER, // The owner of the device is logged in
27 LOGGED_IN_USER_GUEST, // A guest is logged in (i.e. incognito) 27 LOGGED_IN_USER_GUEST, // A guest is logged in (i.e. incognito)
28 LOGGED_IN_USER_RETAIL_MODE, // Is in retail mode
29 LOGGED_IN_USER_PUBLIC_ACCOUNT, // A user is logged in to a public session. 28 LOGGED_IN_USER_PUBLIC_ACCOUNT, // A user is logged in to a public session.
30 LOGGED_IN_USER_SUPERVISED, // A supervised user is logged in 29 LOGGED_IN_USER_SUPERVISED, // A supervised user is logged in
31 LOGGED_IN_USER_KIOSK_APP // Is in kiosk app mode 30 LOGGED_IN_USER_KIOSK_APP // Is in kiosk app mode
32 }; 31 };
33 32
34 class Observer { 33 class Observer {
35 public: 34 public:
36 // Called when either the login state or the logged in user type changes. 35 // Called when either the login state or the logged in user type changes.
37 virtual void LoggedInStateChanged() = 0; 36 virtual void LoggedInStateChanged() = 0;
38 37
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // default running on a Linux desktop without flags and test cases. To test 112 // default running on a Linux desktop without flags and test cases. To test
114 // behaviors with a specific login state, call set_always_logged_in(false). 113 // behaviors with a specific login state, call set_always_logged_in(false).
115 bool always_logged_in_; 114 bool always_logged_in_;
116 115
117 DISALLOW_COPY_AND_ASSIGN(LoginState); 116 DISALLOW_COPY_AND_ASSIGN(LoginState);
118 }; 117 };
119 118
120 } // namespace chromeos 119 } // namespace chromeos
121 120
122 #endif // CHROMEOS_LOGIN_LOGIN_STATE_H_ 121 #endif // CHROMEOS_LOGIN_LOGIN_STATE_H_
OLDNEW
« no previous file with comments | « chromeos/login/auth/mock_authenticator.cc ('k') | chromeos/login/login_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698