| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Indicates that user just started incognito session. | 97 // Indicates that user just started incognito session. |
| 98 virtual void GuestUserLoggedIn() = 0; | 98 virtual void GuestUserLoggedIn() = 0; |
| 99 | 99 |
| 100 // Indicates that a user just logged in as ephemeral. | 100 // Indicates that a user just logged in as ephemeral. |
| 101 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; | 101 virtual void EphemeralUserLoggedIn(const std::string& email) = 0; |
| 102 | 102 |
| 103 // Called when user pod with |email| is selected. | 103 // Called when user pod with |email| is selected. |
| 104 virtual void UserSelected(const std::string& email) = 0; | 104 virtual void UserSelected(const std::string& email) = 0; |
| 105 | 105 |
| 106 // Called when browser session is started i.e. after | 106 // Called when browser session is started i.e. after |
| 107 // browser_init.LaunchBrowser(...) was called after user sign in. | 107 // browser_creator.LaunchBrowser(...) was called after user sign in. |
| 108 // When user is at the image screen IsUserLoggedIn() will return true | 108 // When user is at the image screen IsUserLoggedIn() will return true |
| 109 // but SessionStarted() will return false. | 109 // but SessionStarted() will return false. |
| 110 // Fires NOTIFICATION_SESSION_STARTED. | 110 // Fires NOTIFICATION_SESSION_STARTED. |
| 111 virtual void SessionStarted() = 0; | 111 virtual void SessionStarted() = 0; |
| 112 | 112 |
| 113 // Removes the user from the device. Note, it will verify that the given user | 113 // Removes the user from the device. Note, it will verify that the given user |
| 114 // isn't the owner, so calling this method for the owner will take no effect. | 114 // isn't the owner, so calling this method for the owner will take no effect. |
| 115 // Note, |delegate| can be NULL. | 115 // Note, |delegate| can be NULL. |
| 116 virtual void RemoveUser(const std::string& email, | 116 virtual void RemoveUser(const std::string& email, |
| 117 RemoveUserDelegate* delegate) = 0; | 117 RemoveUserDelegate* delegate) = 0; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Returns true if we're logged in as a demo user. | 212 // Returns true if we're logged in as a demo user. |
| 213 virtual bool IsLoggedInAsDemoUser() const = 0; | 213 virtual bool IsLoggedInAsDemoUser() const = 0; |
| 214 | 214 |
| 215 // Returns true if we're logged in as a Guest. | 215 // Returns true if we're logged in as a Guest. |
| 216 virtual bool IsLoggedInAsGuest() const = 0; | 216 virtual bool IsLoggedInAsGuest() const = 0; |
| 217 | 217 |
| 218 // Returns true if we're logged in as the stub user used for testing on Linux. | 218 // Returns true if we're logged in as the stub user used for testing on Linux. |
| 219 virtual bool IsLoggedInAsStub() const = 0; | 219 virtual bool IsLoggedInAsStub() const = 0; |
| 220 | 220 |
| 221 // Returns true if we're logged in and browser has been started i.e. | 221 // Returns true if we're logged in and browser has been started i.e. |
| 222 // browser_init.LaunchBrowser(...) was called after sign in | 222 // browser_creator.LaunchBrowser(...) was called after sign in |
| 223 // or restart after crash. | 223 // or restart after crash. |
| 224 virtual bool IsSessionStarted() const = 0; | 224 virtual bool IsSessionStarted() const = 0; |
| 225 | 225 |
| 226 virtual void AddObserver(Observer* obs) = 0; | 226 virtual void AddObserver(Observer* obs) = 0; |
| 227 virtual void RemoveObserver(Observer* obs) = 0; | 227 virtual void RemoveObserver(Observer* obs) = 0; |
| 228 | 228 |
| 229 virtual void NotifyLocalStateChanged() = 0; | 229 virtual void NotifyLocalStateChanged() = 0; |
| 230 | 230 |
| 231 // Returns the result of the last successful profile image download, if any. | 231 // Returns the result of the last successful profile image download, if any. |
| 232 // Otherwise, returns an empty bitmap. | 232 // Otherwise, returns an empty bitmap. |
| 233 virtual const SkBitmap& DownloadedProfileImage() const = 0; | 233 virtual const SkBitmap& DownloadedProfileImage() const = 0; |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 } // namespace chromeos | 236 } // namespace chromeos |
| 237 | 237 |
| 238 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 238 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |