Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 | 116 |
| 117 // Map from public session user IDs to recommended locales set by policy. | 117 // Map from public session user IDs to recommended locales set by policy. |
| 118 typedef std::map<std::string, std::vector<std::string> > | 118 typedef std::map<std::string, std::vector<std::string> > |
| 119 PublicSessionRecommendedLocaleMap; | 119 PublicSessionRecommendedLocaleMap; |
| 120 PublicSessionRecommendedLocaleMap public_session_recommended_locales_; | 120 PublicSessionRecommendedLocaleMap public_session_recommended_locales_; |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 EasyUnlockService* GetEasyUnlockServiceForUser( | 123 EasyUnlockService* GetEasyUnlockServiceForUser( |
| 124 const std::string& user_id) const; | 124 const std::string& user_id) const; |
| 125 | 125 |
| 126 void OnUserStatusChecked(const user_manager::UserID& user_id, | 126 // Returns true if user check has started possible, otherwise it returns |
| 127 // false. Note, that "false" may be a temporary status, as other check | |
| 128 // request for this user might be in progress. | |
| 129 bool CheckUserStatusImpl(const std::string& user_id, bool check_all_users); | |
|
Denis Kuznetsov (DE-MUC)
2015/06/25 18:43:42
This approach does not give any guarantees.
Please
Alexander Alekseev
2015/06/30 20:43:39
Common approach will not work here, as TokenHandle
| |
| 130 | |
| 131 void CheckNextUserStatus(const std::string& current_user_id); | |
| 132 | |
| 133 void OnUserStatusChecked(bool check_all_users, | |
| 134 const user_manager::UserID& user_id, | |
| 127 TokenHandleUtil::TokenHandleStatus status); | 135 TokenHandleUtil::TokenHandleStatus status); |
| 128 | 136 |
| 129 // Whether to show guest login. | 137 // Whether to show guest login. |
| 130 bool show_guest_; | 138 bool show_guest_; |
| 131 | 139 |
| 132 // Purpose of the screen (see constants in OobeUI). | 140 // Purpose of the screen (see constants in OobeUI). |
| 133 const std::string display_type_; | 141 const std::string display_type_; |
| 134 | 142 |
| 135 // Set of Users that are visible. | 143 // Set of Users that are visible. |
| 136 user_manager::UserList users_; | 144 user_manager::UserList users_; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 147 scoped_ptr<TokenHandleUtil> token_handle_util_; | 155 scoped_ptr<TokenHandleUtil> token_handle_util_; |
| 148 | 156 |
| 149 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; | 157 base::WeakPtrFactory<UserSelectionScreen> weak_factory_; |
| 150 | 158 |
| 151 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); | 159 DISALLOW_COPY_AND_ASSIGN(UserSelectionScreen); |
| 152 }; | 160 }; |
| 153 | 161 |
| 154 } // namespace chromeos | 162 } // namespace chromeos |
| 155 | 163 |
| 156 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ | 164 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_SELECTION_SCREEN_H_ |
| OLD | NEW |