| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 // Indicates that user just logged on as the demo user. | 89 // Indicates that user just logged on as the demo user. |
| 90 virtual void DemoUserLoggedIn() = 0; | 90 virtual void DemoUserLoggedIn() = 0; |
| 91 | 91 |
| 92 // Indicates that user just started incognito session. | 92 // Indicates that user just started incognito session. |
| 93 virtual void GuestUserLoggedIn() = 0; | 93 virtual void GuestUserLoggedIn() = 0; |
| 94 | 94 |
| 95 // Indicates that a user just logged in as ephemeral. | 95 // Indicates that a user just logged in as ephemeral. |
| 96 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; | 96 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; |
| 97 | 97 |
| 98 // Called when user pod with |email| is selected. |
| 99 virtual void UserSelected(const std::string& email) = 0; |
| 100 |
| 98 // Called when browser session is started i.e. after | 101 // Called when browser session is started i.e. after |
| 99 // browser_init.LaunchBrowser(...) was called after user sign in. | 102 // browser_init.LaunchBrowser(...) was called after user sign in. |
| 100 // When user is at the image screen IsUserLoggedIn() will return true | 103 // When user is at the image screen IsUserLoggedIn() will return true |
| 101 // but SessionStarted() will return false. | 104 // but SessionStarted() will return false. |
| 102 // Fires NOTIFICATION_SESSION_STARTED. | 105 // Fires NOTIFICATION_SESSION_STARTED. |
| 103 virtual void SessionStarted() = 0; | 106 virtual void SessionStarted() = 0; |
| 104 | 107 |
| 105 // Removes the user from the device. Note, it will verify that the given user | 108 // Removes the user from the device. Note, it will verify that the given user |
| 106 // isn't the owner, so calling this method for the owner will take no effect. | 109 // isn't the owner, so calling this method for the owner will take no effect. |
| 107 // Note, |delegate| can be NULL. | 110 // Note, |delegate| can be NULL. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 virtual void NotifyLocalStateChanged() = 0; | 219 virtual void NotifyLocalStateChanged() = 0; |
| 217 | 220 |
| 218 // Returns the result of the last successful profile image download, if any. | 221 // Returns the result of the last successful profile image download, if any. |
| 219 // Otherwise, returns an empty bitmap. | 222 // Otherwise, returns an empty bitmap. |
| 220 virtual const SkBitmap& DownloadedProfileImage() const = 0; | 223 virtual const SkBitmap& DownloadedProfileImage() const = 0; |
| 221 }; | 224 }; |
| 222 | 225 |
| 223 } // namespace chromeos | 226 } // namespace chromeos |
| 224 | 227 |
| 225 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 228 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |