| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 public content::NotificationObserver { | 40 public content::NotificationObserver { |
| 41 public: | 41 public: |
| 42 // UserManager implementation: | 42 // UserManager implementation: |
| 43 virtual ~UserManagerImpl(); | 43 virtual ~UserManagerImpl(); |
| 44 | 44 |
| 45 virtual const UserList& GetUsers() const OVERRIDE; | 45 virtual const UserList& GetUsers() const OVERRIDE; |
| 46 virtual void UserLoggedIn(const std::string& email) OVERRIDE; | 46 virtual void UserLoggedIn(const std::string& email) OVERRIDE; |
| 47 virtual void DemoUserLoggedIn() OVERRIDE; | 47 virtual void DemoUserLoggedIn() OVERRIDE; |
| 48 virtual void GuestUserLoggedIn() OVERRIDE; | 48 virtual void GuestUserLoggedIn() OVERRIDE; |
| 49 virtual void EphemeralUserLoggedIn(const std::string& email) OVERRIDE; | 49 virtual void EphemeralUserLoggedIn(const std::string& email) OVERRIDE; |
| 50 virtual void UserSelected(const std::string& email) OVERRIDE; |
| 50 virtual void RemoveUser(const std::string& email, | 51 virtual void RemoveUser(const std::string& email, |
| 51 RemoveUserDelegate* delegate) OVERRIDE; | 52 RemoveUserDelegate* delegate) OVERRIDE; |
| 52 virtual void RemoveUserFromList(const std::string& email) OVERRIDE; | 53 virtual void RemoveUserFromList(const std::string& email) OVERRIDE; |
| 53 virtual bool IsKnownUser(const std::string& email) const OVERRIDE; | 54 virtual bool IsKnownUser(const std::string& email) const OVERRIDE; |
| 54 virtual const User* FindUser(const std::string& email) const OVERRIDE; | 55 virtual const User* FindUser(const std::string& email) const OVERRIDE; |
| 55 virtual const User& GetLoggedInUser() const OVERRIDE; | 56 virtual const User& GetLoggedInUser() const OVERRIDE; |
| 56 virtual User& GetLoggedInUser() OVERRIDE; | 57 virtual User& GetLoggedInUser() OVERRIDE; |
| 57 virtual bool IsDisplayNameUnique( | 58 virtual bool IsDisplayNameUnique( |
| 58 const std::string& display_name) const OVERRIDE; | 59 const std::string& display_name) const OVERRIDE; |
| 59 virtual void SaveUserOAuthStatus( | 60 virtual void SaveUserOAuthStatus( |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 bool AreEphemeralUsersEnabled() const; | 120 bool AreEphemeralUsersEnabled() const; |
| 120 | 121 |
| 121 // Returns true if the user with the given email address is to be treated as | 122 // Returns true if the user with the given email address is to be treated as |
| 122 // ephemeral. | 123 // ephemeral. |
| 123 bool IsEphemeralUser(const std::string& email) const; | 124 bool IsEphemeralUser(const std::string& email) const; |
| 124 | 125 |
| 125 // Returns the user with the given email address if found in the persistent | 126 // Returns the user with the given email address if found in the persistent |
| 126 // list. Returns |NULL| otherwise. | 127 // list. Returns |NULL| otherwise. |
| 127 const User* FindUserInList(const std::string& email) const; | 128 const User* FindUserInList(const std::string& email) const; |
| 128 | 129 |
| 130 int FindUserWallpaperIndex(const std::string& email); |
| 131 |
| 129 // Makes stub user the current logged-in user (for test paths). | 132 // Makes stub user the current logged-in user (for test paths). |
| 130 void StubUserLoggedIn(); | 133 void StubUserLoggedIn(); |
| 131 | 134 |
| 132 // Notifies on new user session. | 135 // Notifies on new user session. |
| 133 void NotifyOnLogin(); | 136 void NotifyOnLogin(); |
| 134 | 137 |
| 135 // Reads user's oauth token status from local state preferences. | 138 // Reads user's oauth token status from local state preferences. |
| 136 User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& username) const; | 139 User::OAuthTokenStatus LoadUserOAuthStatus(const std::string& username) const; |
| 137 | 140 |
| 138 void SetCurrentUserIsOwner(bool is_current_user_owner); | 141 void SetCurrentUserIsOwner(bool is_current_user_owner); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 276 |
| 274 // Data URL for |downloaded_profile_image_|. | 277 // Data URL for |downloaded_profile_image_|. |
| 275 std::string downloaded_profile_image_data_url_; | 278 std::string downloaded_profile_image_data_url_; |
| 276 | 279 |
| 277 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); | 280 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); |
| 278 }; | 281 }; |
| 279 | 282 |
| 280 } // namespace chromeos | 283 } // namespace chromeos |
| 281 | 284 |
| 282 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 285 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
| OLD | NEW |