| 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 // ProfileDownloaderDelegate implementation. | 292 // ProfileDownloaderDelegate implementation. |
| 293 virtual bool NeedsProfilePicture() const OVERRIDE; | 293 virtual bool NeedsProfilePicture() const OVERRIDE; |
| 294 virtual int GetDesiredImageSideLength() const OVERRIDE; | 294 virtual int GetDesiredImageSideLength() const OVERRIDE; |
| 295 virtual Profile* GetBrowserProfile() OVERRIDE; | 295 virtual Profile* GetBrowserProfile() OVERRIDE; |
| 296 virtual std::string GetCachedPictureURL() const OVERRIDE; | 296 virtual std::string GetCachedPictureURL() const OVERRIDE; |
| 297 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) OVERRIDE; | 297 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) OVERRIDE; |
| 298 virtual void OnProfileDownloadFailure(ProfileDownloader* downloader) OVERRIDE; | 298 virtual void OnProfileDownloadFailure(ProfileDownloader* downloader) OVERRIDE; |
| 299 | 299 |
| 300 // Creates a new User instance. | 300 // Creates a new User instance. |
| 301 User* CreateUser(const std::string& email) const; | 301 User* CreateUser(const std::string& email, bool is_ephemeral) const; |
| 302 | 302 |
| 303 // Removes the user from the persistent list only. Also removes the user's | 303 // Removes the user from the persistent list only. Also removes the user's |
| 304 // picture. | 304 // picture. |
| 305 void RemoveUserFromListInternal(const std::string& email); | 305 void RemoveUserFromListInternal(const std::string& email); |
| 306 | 306 |
| 307 // Loads user image from its file. | 307 // Loads user image from its file. |
| 308 scoped_refptr<UserImageLoader> image_loader_; | 308 scoped_refptr<UserImageLoader> image_loader_; |
| 309 | 309 |
| 310 // List of all known users. User instances are owned by |this| and deleted | 310 // List of all known users. User instances are owned by |this| and deleted |
| 311 // when users are removed by |RemoveUserFromListInternal|. | 311 // when users are removed by |RemoveUserFromListInternal|. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 // Timer triggering DownloadProfileDataScheduled for refreshing profile data. | 388 // Timer triggering DownloadProfileDataScheduled for refreshing profile data. |
| 389 base::RepeatingTimer<UserManagerImpl> profile_download_timer_; | 389 base::RepeatingTimer<UserManagerImpl> profile_download_timer_; |
| 390 | 390 |
| 391 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); | 391 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); |
| 392 }; | 392 }; |
| 393 | 393 |
| 394 } // namespace chromeos | 394 } // namespace chromeos |
| 395 | 395 |
| 396 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 396 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
| OLD | NEW |