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

Side by Side Diff: chrome/browser/chromeos/login/screens/user_selection_screen.h

Issue 2811383002: cros: Refactor oobe LoadUsers to include non-serialized user list. (Closed)
Patch Set: Initial upload Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 29 matching lines...) Expand all
40 40
41 void SetLoginDisplayDelegate(LoginDisplay::Delegate* login_display_delegate); 41 void SetLoginDisplayDelegate(LoginDisplay::Delegate* login_display_delegate);
42 void SetHandler(LoginDisplayWebUIHandler* handler); 42 void SetHandler(LoginDisplayWebUIHandler* handler);
43 void SetView(UserBoardView* view); 43 void SetView(UserBoardView* view);
44 44
45 static const user_manager::UserList PrepareUserListForSending( 45 static const user_manager::UserList PrepareUserListForSending(
46 const user_manager::UserList& users, 46 const user_manager::UserList& users,
47 const AccountId& owner, 47 const AccountId& owner,
48 bool is_signin_to_add); 48 bool is_signin_to_add);
49 49
50 virtual void Init(const user_manager::UserList& users, bool show_guest); 50 virtual void Init(const user_manager::UserList& users);
51 void OnUserImageChanged(const user_manager::User& user); 51 void OnUserImageChanged(const user_manager::User& user);
52 void OnBeforeUserRemoved(const AccountId& account_id); 52 void OnBeforeUserRemoved(const AccountId& account_id);
53 void OnUserRemoved(const AccountId& account_id); 53 void OnUserRemoved(const AccountId& account_id);
54 54
55 void OnPasswordClearTimerExpired(); 55 void OnPasswordClearTimerExpired();
56 56
57 void HandleGetUsers(); 57 void HandleGetUsers();
58 void CheckUserStatus(const AccountId& account_id); 58 void CheckUserStatus(const AccountId& account_id);
59 59
60 // Build list of users and send it to the webui. 60 // Build list of users and send it to the webui.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 EasyUnlockService* GetEasyUnlockServiceForUser( 128 EasyUnlockService* GetEasyUnlockServiceForUser(
129 const AccountId& account_id) const; 129 const AccountId& account_id) const;
130 130
131 void OnUserStatusChecked(const AccountId& account_id, 131 void OnUserStatusChecked(const AccountId& account_id,
132 TokenHandleUtil::TokenHandleStatus status); 132 TokenHandleUtil::TokenHandleStatus status);
133 133
134 LoginDisplayWebUIHandler* handler_ = nullptr; 134 LoginDisplayWebUIHandler* handler_ = nullptr;
135 LoginDisplay::Delegate* login_display_delegate_ = nullptr; 135 LoginDisplay::Delegate* login_display_delegate_ = nullptr;
136 136
137 // Whether to show guest login.
138 bool show_guest_ = false;
139
140 // Purpose of the screen (see constants in OobeUI). 137 // Purpose of the screen (see constants in OobeUI).
141 const std::string display_type_; 138 const std::string display_type_;
142 139
143 // Set of Users that are visible. 140 // Set of Users that are visible.
144 user_manager::UserList users_; 141 user_manager::UserList users_;
145 142
146 // Map of accounnt ids to their current authentication type. If a user is not 143 // Map of accounnt ids to their current authentication type. If a user is not
147 // contained in the map, it is using the default authentication type. 144 // contained in the map, it is using the default authentication type.
148 std::map<AccountId, proximity_auth::ScreenlockBridge::LockHandler::AuthType> 145 std::map<AccountId, proximity_auth::ScreenlockBridge::LockHandler::AuthType>
149 user_auth_type_map_; 146 user_auth_type_map_;
150 147
151 // Timer for measuring idle state duration before password clear. 148 // Timer for measuring idle state duration before password clear.
152 base::OneShotTimer password_clear_timer_; 149 base::OneShotTimer password_clear_timer_;
153 150
154 // Token handler util for checking user OAuth token status. 151 // Token handler util for checking user OAuth token status.
155 std::unique_ptr<TokenHandleUtil> token_handle_util_; 152 std::unique_ptr<TokenHandleUtil> token_handle_util_;
156 153
157 // Helper to check whether a user needs dircrypto migration. 154 // Helper to check whether a user needs dircrypto migration.
158 std::unique_ptr<DircryptoMigrationChecker> dircrypto_migration_checker_; 155 std::unique_ptr<DircryptoMigrationChecker> dircrypto_migration_checker_;
159 156
160 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; 157 base::WeakPtrFactory<UserSelectionScreen> weak_factory_;
161 158
162 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); 159 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen);
163 }; 160 };
164 161
165 } // namespace chromeos 162 } // namespace chromeos
166 163
167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ 164 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698