Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 // Create a sync observer if a user is logged in, the user's user image is | 142 // Create a sync observer if a user is logged in, the user's user image is |
| 143 // allowed to be synced and no sync observer exists yet. | 143 // allowed to be synced and no sync observer exists yet. |
| 144 void TryToCreateImageSyncObserver(); | 144 void TryToCreateImageSyncObserver(); |
| 145 | 145 |
| 146 // Returns immutable version of user with |user_id_|. | 146 // Returns immutable version of user with |user_id_|. |
| 147 const user_manager::User* GetUser() const; | 147 const user_manager::User* GetUser() const; |
| 148 | 148 |
| 149 // Returns mutable version of user with |user_id_|. | 149 // Returns mutable version of user with |user_id_|. |
| 150 user_manager::User* GetUserAndModify() const; | 150 user_manager::User* GetUserAndModify() const; |
| 151 | 151 |
| 152 // Returns true if user with |user_id_| is logged in and a regular user. | 152 // Returns true if user with |user_id_| is logged in and has gaia account. |
|
bartfab (slow)
2014/11/27 12:51:50
Nit: s/has/has a/
| |
| 153 bool IsUserLoggedInAndRegular() const; | 153 bool IsUserLoggedInAndHasGaiaAccount() const; |
| 154 | 154 |
| 155 // The user manager. | 155 // The user manager. |
| 156 user_manager::UserManager* user_manager_; | 156 user_manager::UserManager* user_manager_; |
| 157 | 157 |
| 158 // Loader for JPEG user images. | 158 // Loader for JPEG user images. |
| 159 scoped_refptr<UserImageLoader> image_loader_; | 159 scoped_refptr<UserImageLoader> image_loader_; |
| 160 | 160 |
| 161 // Unsafe loader instance for all user images formats. | 161 // Unsafe loader instance for all user images formats. |
| 162 scoped_refptr<UserImageLoader> unsafe_image_loader_; | 162 scoped_refptr<UserImageLoader> unsafe_image_loader_; |
| 163 | 163 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 bool user_needs_migration_; | 218 bool user_needs_migration_; |
| 219 | 219 |
| 220 base::WeakPtrFactory<UserImageManagerImpl> weak_factory_; | 220 base::WeakPtrFactory<UserImageManagerImpl> weak_factory_; |
| 221 | 221 |
| 222 DISALLOW_COPY_AND_ASSIGN(UserImageManagerImpl); | 222 DISALLOW_COPY_AND_ASSIGN(UserImageManagerImpl); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 } // namespace chromeos | 225 } // namespace chromeos |
| 226 | 226 |
| 227 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ | 227 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_MANAGER_IMPL_H_ |
| OLD | NEW |