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

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

Issue 23466015: network_list.js should reflect the correct logged in user type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and addressed stevenjb@'s comments. Created 7 years, 3 months 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 | Annotate | Revision Log
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"
(...skipping 15 matching lines...) Expand all
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 28 LOGGED_IN_USER_RETAIL_MODE, // Is in retail mode
29 LOGGED_IN_USER_PUBLIC_ACCOUNT, // A public account is logged in 29 LOGGED_IN_USER_PUBLIC_ACCOUNT, // A public account is logged in
30 LOGGED_IN_USER_LOCALLY_MANAGED, // A locally managed user is logged in 30 LOGGED_IN_USER_LOCALLY_MANAGED, // A locally managed user is logged in
31 LOGGED_IN_USER_KIOSK_APP // Is in kiosk app mode 31 LOGGED_IN_USER_KIOSK_APP // Is in kiosk app mode
32 }; 32 };
33 33
34 class Observer { 34 class Observer {
35 public: 35 public:
36 // Called when the login state changes. 36 // Called when either the login state or the logged in user type changes.
37 virtual void LoggedInStateChanged(LoggedInState state) = 0; 37 virtual void LoggedInStateChanged(LoggedInState state) = 0;
38 38
39 protected: 39 protected:
40 virtual ~Observer() {} 40 virtual ~Observer() {}
41 }; 41 };
42 42
43 // Manage singleton instance. 43 // Manage singleton instance.
44 static void Initialize(); 44 static void Initialize();
45 static void Shutdown(); 45 static void Shutdown();
46 static LoginState* Get(); 46 static LoginState* Get();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 LoggedInState logged_in_state_; 79 LoggedInState logged_in_state_;
80 LoggedInUserType logged_in_user_type_; 80 LoggedInUserType logged_in_user_type_;
81 ObserverList<Observer> observer_list_; 81 ObserverList<Observer> observer_list_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(LoginState); 83 DISALLOW_COPY_AND_ASSIGN(LoginState);
84 }; 84 };
85 85
86 } // namespace chromeos 86 } // namespace chromeos
87 87
88 #endif // CHROMEOS_LOGIN_LOGIN_STATE_H_ 88 #endif // CHROMEOS_LOGIN_LOGIN_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc ('k') | chromeos/login/login_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698