| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 virtual bool IsLoggedInAsGuest() const = 0; | 183 virtual bool IsLoggedInAsGuest() const = 0; |
| 184 | 184 |
| 185 // Returns true if we're logged in as the stub user used for testing on Linux. | 185 // Returns true if we're logged in as the stub user used for testing on Linux. |
| 186 virtual bool IsLoggedInAsStub() const = 0; | 186 virtual bool IsLoggedInAsStub() const = 0; |
| 187 | 187 |
| 188 // Returns true if we're logged in and browser has been started i.e. | 188 // Returns true if we're logged in and browser has been started i.e. |
| 189 // browser_creator.LaunchBrowser(...) was called after sign in | 189 // browser_creator.LaunchBrowser(...) was called after sign in |
| 190 // or restart after crash. | 190 // or restart after crash. |
| 191 virtual bool IsSessionStarted() const = 0; | 191 virtual bool IsSessionStarted() const = 0; |
| 192 | 192 |
| 193 // Returns true when the browser has crashed and restarted during the current |
| 194 // user's session. |
| 195 virtual bool HasBrowserRestarted() const = 0; |
| 196 |
| 193 // Returns true if data stored or cached for the user with the given email | 197 // Returns true if data stored or cached for the user with the given email |
| 194 // address outside that user's cryptohome (wallpaper, avatar, OAuth token | 198 // address outside that user's cryptohome (wallpaper, avatar, OAuth token |
| 195 // status, display name, display email) is to be treated as ephemeral. | 199 // status, display name, display email) is to be treated as ephemeral. |
| 196 virtual bool IsUserNonCryptohomeDataEphemeral( | 200 virtual bool IsUserNonCryptohomeDataEphemeral( |
| 197 const std::string& email) const = 0; | 201 const std::string& email) const = 0; |
| 198 | 202 |
| 199 virtual void AddObserver(Observer* obs) = 0; | 203 virtual void AddObserver(Observer* obs) = 0; |
| 200 virtual void RemoveObserver(Observer* obs) = 0; | 204 virtual void RemoveObserver(Observer* obs) = 0; |
| 201 | 205 |
| 202 virtual void NotifyLocalStateChanged() = 0; | 206 virtual void NotifyLocalStateChanged() = 0; |
| 203 }; | 207 }; |
| 204 | 208 |
| 205 } // namespace chromeos | 209 } // namespace chromeos |
| 206 | 210 |
| 207 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |