Chromium Code Reviews| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 // is downloaded successfuly. | 133 // is downloaded successfuly. |
| 134 virtual void SaveUserImageFromProfileImage(const std::string& username) = 0; | 134 virtual void SaveUserImageFromProfileImage(const std::string& username) = 0; |
| 135 | 135 |
| 136 // Starts downloading the profile image for the logged-in user. | 136 // Starts downloading the profile image for the logged-in user. |
| 137 // If user's image index is |kProfileImageIndex|, newly downloaded image | 137 // If user's image index is |kProfileImageIndex|, newly downloaded image |
| 138 // is immediately set as user's current picture. | 138 // is immediately set as user's current picture. |
| 139 // |reason| is an arbitraty string (used to report UMA histograms with | 139 // |reason| is an arbitraty string (used to report UMA histograms with |
| 140 // download times). | 140 // download times). |
| 141 virtual void DownloadProfileImage(const std::string& reason) = 0; | 141 virtual void DownloadProfileImage(const std::string& reason) = 0; |
| 142 | 142 |
| 143 // Loads the key/certificates database for the current logged in user. | |
| 144 virtual void LoadKeyStore() = 0; | |
| 145 | |
| 143 // Returns true if current user is an owner. | 146 // Returns true if current user is an owner. |
| 144 virtual bool IsCurrentUserOwner() const = 0; | 147 virtual bool IsCurrentUserOwner() const = 0; |
| 145 | 148 |
| 149 | |
|
Chris Masone
2012/03/13 16:45:53
extra newline
pastarmovj
2012/03/22 11:48:01
Done.
| |
| 146 // Returns true if current user is not existing one (hasn't signed in before). | 150 // Returns true if current user is not existing one (hasn't signed in before). |
| 147 virtual bool IsCurrentUserNew() const = 0; | 151 virtual bool IsCurrentUserNew() const = 0; |
| 148 | 152 |
| 149 // Returns true if user is signed in. | 153 // Returns true if user is signed in. |
| 150 virtual bool IsUserLoggedIn() const = 0; | 154 virtual bool IsUserLoggedIn() const = 0; |
| 151 | 155 |
| 152 // Returns true if we're logged in as a demo user. | 156 // Returns true if we're logged in as a demo user. |
| 153 virtual bool IsLoggedInAsDemoUser() const = 0; | 157 virtual bool IsLoggedInAsDemoUser() const = 0; |
| 154 | 158 |
| 155 // Returns true if we're logged in as a Guest. | 159 // Returns true if we're logged in as a Guest. |
| 156 virtual bool IsLoggedInAsGuest() const = 0; | 160 virtual bool IsLoggedInAsGuest() const = 0; |
| 157 | 161 |
| 158 virtual void AddObserver(Observer* obs) = 0; | 162 virtual void AddObserver(Observer* obs) = 0; |
| 159 virtual void RemoveObserver(Observer* obs) = 0; | 163 virtual void RemoveObserver(Observer* obs) = 0; |
| 160 | 164 |
| 161 virtual void NotifyLocalStateChanged() = 0; | 165 virtual void NotifyLocalStateChanged() = 0; |
| 162 | 166 |
| 163 // Returns the result of the last successful profile image download, if any. | 167 // Returns the result of the last successful profile image download, if any. |
| 164 // Otherwise, returns an empty bitmap. | 168 // Otherwise, returns an empty bitmap. |
| 165 virtual const SkBitmap& DownloadedProfileImage() const = 0; | 169 virtual const SkBitmap& DownloadedProfileImage() const = 0; |
| 166 }; | 170 }; |
| 167 | 171 |
| 168 } // namespace chromeos | 172 } // namespace chromeos |
| 169 | 173 |
| 170 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 174 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |