OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_USER_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 virtual const User* GetLoggedInUser() const OVERRIDE; | 86 virtual const User* GetLoggedInUser() const OVERRIDE; |
87 virtual User* GetLoggedInUser() OVERRIDE; | 87 virtual User* GetLoggedInUser() OVERRIDE; |
88 virtual const User* GetActiveUser() const OVERRIDE; | 88 virtual const User* GetActiveUser() const OVERRIDE; |
89 virtual User* GetActiveUser() OVERRIDE; | 89 virtual User* GetActiveUser() OVERRIDE; |
90 virtual const User* GetPrimaryUser() const OVERRIDE; | 90 virtual const User* GetPrimaryUser() const OVERRIDE; |
91 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; | 91 virtual User* GetUserByProfile(Profile* profile) const OVERRIDE; |
92 virtual Profile* GetProfileByUser(const User* user) const OVERRIDE; | 92 virtual Profile* GetProfileByUser(const User* user) const OVERRIDE; |
93 virtual void SaveUserOAuthStatus( | 93 virtual void SaveUserOAuthStatus( |
94 const std::string& user_id, | 94 const std::string& user_id, |
95 User::OAuthTokenStatus oauth_token_status) OVERRIDE; | 95 User::OAuthTokenStatus oauth_token_status) OVERRIDE; |
96 virtual void SaveForceOnlineSignin(const std::string& user_id, | |
97 bool force_online_signin) OVERRIDE; | |
96 virtual void SaveUserDisplayName(const std::string& user_id, | 98 virtual void SaveUserDisplayName(const std::string& user_id, |
97 const base::string16& display_name) OVERRIDE; | 99 const base::string16& display_name) OVERRIDE; |
98 virtual base::string16 GetUserDisplayName( | 100 virtual base::string16 GetUserDisplayName( |
99 const std::string& user_id) const OVERRIDE; | 101 const std::string& user_id) const OVERRIDE; |
100 virtual void SaveUserDisplayEmail(const std::string& user_id, | 102 virtual void SaveUserDisplayEmail(const std::string& user_id, |
101 const std::string& display_email) OVERRIDE; | 103 const std::string& display_email) OVERRIDE; |
102 virtual std::string GetUserDisplayEmail( | 104 virtual std::string GetUserDisplayEmail( |
103 const std::string& user_id) const OVERRIDE; | 105 const std::string& user_id) const OVERRIDE; |
104 virtual void UpdateUserAccountData( | 106 virtual void UpdateUserAccountData( |
105 const std::string& user_id, | 107 const std::string& user_id, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 // Indicates that a user just logged into a retail mode session. | 244 // Indicates that a user just logged into a retail mode session. |
243 void RetailModeUserLoggedIn(); | 245 void RetailModeUserLoggedIn(); |
244 | 246 |
245 // Notifies that user has logged in. | 247 // Notifies that user has logged in. |
246 // Sends NOTIFICATION_LOGIN_USER_CHANGED notification. | 248 // Sends NOTIFICATION_LOGIN_USER_CHANGED notification. |
247 void NotifyOnLogin(); | 249 void NotifyOnLogin(); |
248 | 250 |
249 // Reads user's oauth token status from local state preferences. | 251 // Reads user's oauth token status from local state preferences. |
250 User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& user_id) const; | 252 User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& user_id) const; |
251 | 253 |
254 bool LoadForceOnlineSignin(const std::string& user_id) const; | |
Nikita (slow)
2014/01/23 16:06:56
nit: Please add comment.
bartfab (slow)
2014/01/24 12:08:05
Done.
| |
255 | |
252 void SetCurrentUserIsOwner(bool is_current_user_owner); | 256 void SetCurrentUserIsOwner(bool is_current_user_owner); |
253 | 257 |
254 // Updates current user ownership on UI thread. | 258 // Updates current user ownership on UI thread. |
255 void UpdateOwnership(); | 259 void UpdateOwnership(); |
256 | 260 |
257 // Removes data stored or cached outside the user's cryptohome (wallpaper, | 261 // Removes data stored or cached outside the user's cryptohome (wallpaper, |
258 // avatar, OAuth token status, display name, display email). | 262 // avatar, OAuth token status, display name, display email). |
259 void RemoveNonCryptohomeData(const std::string& user_id); | 263 void RemoveNonCryptohomeData(const std::string& user_id); |
260 | 264 |
261 // Removes a regular or locally managed user from the user list. | 265 // Removes a regular or locally managed user from the user list. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
472 | 476 |
473 // Observer for the policy that can be used to manage user images. | 477 // Observer for the policy that can be used to manage user images. |
474 scoped_ptr<policy::CloudExternalDataPolicyObserver> policy_observer_; | 478 scoped_ptr<policy::CloudExternalDataPolicyObserver> policy_observer_; |
475 | 479 |
476 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); | 480 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); |
477 }; | 481 }; |
478 | 482 |
479 } // namespace chromeos | 483 } // namespace chromeos |
480 | 484 |
481 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
OLD | NEW |