| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Saves user's oauth token status in local state preferences. | 202 // Saves user's oauth token status in local state preferences. |
| 203 virtual void SaveUserOAuthStatus( | 203 virtual void SaveUserOAuthStatus( |
| 204 const std::string& username, | 204 const std::string& username, |
| 205 User::OAuthTokenStatus oauth_token_status) = 0; | 205 User::OAuthTokenStatus oauth_token_status) = 0; |
| 206 | 206 |
| 207 // Saves user's displayed name in local state preferences. | 207 // Saves user's displayed name in local state preferences. |
| 208 // Ignored If there is no such user. | 208 // Ignored If there is no such user. |
| 209 virtual void SaveUserDisplayName(const std::string& username, | 209 virtual void SaveUserDisplayName(const std::string& username, |
| 210 const string16& display_name) = 0; | 210 const string16& display_name) = 0; |
| 211 | 211 |
| 212 // Updates data upon User Account download. |
| 213 virtual void UpdateUserAccountData(const std::string& username, |
| 214 const string16& display_name, |
| 215 const std::string& locale) = 0; |
| 216 |
| 212 // Returns the display name for user |username| if it is known (was | 217 // Returns the display name for user |username| if it is known (was |
| 213 // previously set by a |SaveUserDisplayName| call). | 218 // previously set by a |SaveUserDisplayName| call). |
| 214 // Otherwise, returns an empty string. | 219 // Otherwise, returns an empty string. |
| 215 virtual string16 GetUserDisplayName( | 220 virtual string16 GetUserDisplayName( |
| 216 const std::string& username) const = 0; | 221 const std::string& username) const = 0; |
| 217 | 222 |
| 218 // Saves user's displayed (non-canonical) email in local state preferences. | 223 // Saves user's displayed (non-canonical) email in local state preferences. |
| 219 // Ignored If there is no such user. | 224 // Ignored If there is no such user. |
| 220 virtual void SaveUserDisplayEmail(const std::string& username, | 225 virtual void SaveUserDisplayEmail(const std::string& username, |
| 221 const std::string& display_email) = 0; | 226 const std::string& display_email) = 0; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 ScopedTestUserManager(); | 394 ScopedTestUserManager(); |
| 390 ~ScopedTestUserManager(); | 395 ~ScopedTestUserManager(); |
| 391 | 396 |
| 392 private: | 397 private: |
| 393 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 398 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 394 }; | 399 }; |
| 395 | 400 |
| 396 } // namespace chromeos | 401 } // namespace chromeos |
| 397 | 402 |
| 398 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 403 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |