OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 // Updates current user ownership on UI thread. | 208 // Updates current user ownership on UI thread. |
209 void UpdateOwnership(bool is_owner); | 209 void UpdateOwnership(bool is_owner); |
210 | 210 |
211 // Checks current user's ownership on file thread. | 211 // Checks current user's ownership on file thread. |
212 void CheckOwnership(); | 212 void CheckOwnership(); |
213 | 213 |
214 // ProfileDownloaderDelegate implementation. | 214 // ProfileDownloaderDelegate implementation. |
215 virtual int GetDesiredImageSideLength() const OVERRIDE; | 215 virtual int GetDesiredImageSideLength() const OVERRIDE; |
216 virtual Profile* GetBrowserProfile() OVERRIDE; | 216 virtual Profile* GetBrowserProfile() OVERRIDE; |
217 virtual bool ShouldUseOAuthRefreshToken() const OVERRIDE; | |
218 virtual std::string GetCachedPictureURL() const OVERRIDE; | 217 virtual std::string GetCachedPictureURL() const OVERRIDE; |
219 virtual void OnDownloadComplete(ProfileDownloader* downloader, | 218 virtual void OnDownloadComplete(ProfileDownloader* downloader, |
220 bool success) OVERRIDE; | 219 bool success) OVERRIDE; |
221 | 220 |
222 // Creates a new User instance. | 221 // Creates a new User instance. |
223 User* CreateUser(const std::string& email) const; | 222 User* CreateUser(const std::string& email) const; |
224 | 223 |
225 // Loads user image from its file. | 224 // Loads user image from its file. |
226 scoped_refptr<UserImageLoader> image_loader_; | 225 scoped_refptr<UserImageLoader> image_loader_; |
227 | 226 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 277 |
279 // Data URL for |downloaded_profile_image_|. | 278 // Data URL for |downloaded_profile_image_|. |
280 std::string downloaded_profile_image_data_url_; | 279 std::string downloaded_profile_image_data_url_; |
281 | 280 |
282 DISALLOW_COPY_AND_ASSIGN(UserManager); | 281 DISALLOW_COPY_AND_ASSIGN(UserManager); |
283 }; | 282 }; |
284 | 283 |
285 } // namespace chromeos | 284 } // namespace chromeos |
286 | 285 |
287 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 286 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |