| 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 "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/user.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // Saves user's oauth token status in local state preferences. | 207 // Saves user's oauth token status in local state preferences. |
| 208 virtual void SaveUserOAuthStatus( | 208 virtual void SaveUserOAuthStatus( |
| 209 const std::string& username, | 209 const std::string& username, |
| 210 User::OAuthTokenStatus oauth_token_status) = 0; | 210 User::OAuthTokenStatus oauth_token_status) = 0; |
| 211 | 211 |
| 212 // Saves user's displayed name in local state preferences. | 212 // Saves user's displayed name in local state preferences. |
| 213 // Ignored If there is no such user. | 213 // Ignored If there is no such user. |
| 214 virtual void SaveUserDisplayName(const std::string& username, | 214 virtual void SaveUserDisplayName(const std::string& username, |
| 215 const string16& display_name) = 0; | 215 const string16& display_name) = 0; |
| 216 | 216 |
| 217 // Updates data upon User Account download. |
| 218 virtual void UpdateUserAccountData(const std::string& username, |
| 219 const string16& display_name, |
| 220 const std::string& locale) = 0; |
| 221 |
| 217 // Returns the display name for user |username| if it is known (was | 222 // Returns the display name for user |username| if it is known (was |
| 218 // previously set by a |SaveUserDisplayName| call). | 223 // previously set by a |SaveUserDisplayName| call). |
| 219 // Otherwise, returns an empty string. | 224 // Otherwise, returns an empty string. |
| 220 virtual string16 GetUserDisplayName( | 225 virtual string16 GetUserDisplayName( |
| 221 const std::string& username) const = 0; | 226 const std::string& username) const = 0; |
| 222 | 227 |
| 223 // Saves user's displayed (non-canonical) email in local state preferences. | 228 // Saves user's displayed (non-canonical) email in local state preferences. |
| 224 // Ignored If there is no such user. | 229 // Ignored If there is no such user. |
| 225 virtual void SaveUserDisplayEmail(const std::string& username, | 230 virtual void SaveUserDisplayEmail(const std::string& username, |
| 226 const std::string& display_email) = 0; | 231 const std::string& display_email) = 0; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 ScopedTestUserManager(); | 402 ScopedTestUserManager(); |
| 398 ~ScopedTestUserManager(); | 403 ~ScopedTestUserManager(); |
| 399 | 404 |
| 400 private: | 405 private: |
| 401 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 406 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 402 }; | 407 }; |
| 403 | 408 |
| 404 } // namespace chromeos | 409 } // namespace chromeos |
| 405 | 410 |
| 406 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 411 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |