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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Indicates that a user with the given email has just logged in. The | 65 // Indicates that a user with the given email has just logged in. The |
66 // persistent list is updated accordingly if the user is not ephemeral. | 66 // persistent list is updated accordingly if the user is not ephemeral. |
67 virtual void UserLoggedIn(const std::string& email) = 0; | 67 virtual void UserLoggedIn(const std::string& email) = 0; |
68 | 68 |
69 // Indicates that user just logged on as the demo user. | 69 // Indicates that user just logged on as the demo user. |
70 virtual void DemoUserLoggedIn() = 0; | 70 virtual void DemoUserLoggedIn() = 0; |
71 | 71 |
72 // Indicates that user just started incognito session. | 72 // Indicates that user just started incognito session. |
73 virtual void GuestUserLoggedIn() = 0; | 73 virtual void GuestUserLoggedIn() = 0; |
74 | 74 |
| 75 // Indicates that a user just logged in as ephemeral. |
| 76 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; |
| 77 |
75 // Removes the user from the device. Note, it will verify that the given user | 78 // Removes the user from the device. Note, it will verify that the given user |
76 // isn't the owner, so calling this method for the owner will take no effect. | 79 // isn't the owner, so calling this method for the owner will take no effect. |
77 // Note, |delegate| can be NULL. | 80 // Note, |delegate| can be NULL. |
78 virtual void RemoveUser(const std::string& email, | 81 virtual void RemoveUser(const std::string& email, |
79 RemoveUserDelegate* delegate) = 0; | 82 RemoveUserDelegate* delegate) = 0; |
80 | 83 |
81 // Removes the user from the persistent list only. Also removes the user's | 84 // Removes the user from the persistent list only. Also removes the user's |
82 // picture. | 85 // picture. |
83 virtual void RemoveUserFromList(const std::string& email) = 0; | 86 virtual void RemoveUserFromList(const std::string& email) = 0; |
84 | 87 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 virtual void NotifyLocalStateChanged() = 0; | 169 virtual void NotifyLocalStateChanged() = 0; |
167 | 170 |
168 // Returns the result of the last successful profile image download, if any. | 171 // Returns the result of the last successful profile image download, if any. |
169 // Otherwise, returns an empty bitmap. | 172 // Otherwise, returns an empty bitmap. |
170 virtual const SkBitmap& DownloadedProfileImage() const = 0; | 173 virtual const SkBitmap& DownloadedProfileImage() const = 0; |
171 }; | 174 }; |
172 | 175 |
173 } // namespace chromeos | 176 } // namespace chromeos |
174 | 177 |
175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 178 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |