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 #include <vector> | 10 #include <vector> |
(...skipping 13 matching lines...) Expand all Loading... | |
24 | 24 |
25 class FilePath; | 25 class FilePath; |
26 class PrefService; | 26 class PrefService; |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 template<typename> struct DefaultLazyInstanceTraits; | 29 template<typename> struct DefaultLazyInstanceTraits; |
30 } | 30 } |
31 | 31 |
32 namespace chromeos { | 32 namespace chromeos { |
33 class RemoveUserDelegate; | 33 class RemoveUserDelegate; |
34 class CertLibrary; | |
wtc
2011/10/12 17:20:34
Nit: may want to list the forward declarations in
| |
34 | 35 |
35 // This class provides a mechanism for discovering users who have logged | 36 // This class provides a mechanism for discovering users who have logged |
36 // into this chromium os device before and updating that list. | 37 // into this chromium os device before and updating that list. |
37 class UserManager : public UserImageLoader::Delegate, | 38 class UserManager : public UserImageLoader::Delegate, |
38 public ProfileImageDownloader::Delegate, | 39 public ProfileImageDownloader::Delegate, |
39 public NotificationObserver { | 40 public NotificationObserver { |
40 public: | 41 public: |
41 // User OAuth token status according to the last check. | 42 // User OAuth token status according to the last check. |
42 typedef enum { | 43 typedef enum { |
43 OAUTH_TOKEN_STATUS_UNKNOWN = 0, | 44 OAUTH_TOKEN_STATUS_UNKNOWN = 0, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
266 | 267 |
267 friend struct base::DefaultLazyInstanceTraits<UserManager>; | 268 friend struct base::DefaultLazyInstanceTraits<UserManager>; |
268 | 269 |
269 ObserverList<Observer> observer_list_; | 270 ObserverList<Observer> observer_list_; |
270 | 271 |
271 // Download user profile image on login to update it if it's changed. | 272 // Download user profile image on login to update it if it's changed. |
272 scoped_ptr<ProfileImageDownloader> profile_image_downloader_; | 273 scoped_ptr<ProfileImageDownloader> profile_image_downloader_; |
273 | 274 |
274 ScopedRunnableMethodFactory<UserManager> method_factory_; | 275 ScopedRunnableMethodFactory<UserManager> method_factory_; |
275 | 276 |
277 CertLibrary* cert_library_; | |
278 | |
276 DISALLOW_COPY_AND_ASSIGN(UserManager); | 279 DISALLOW_COPY_AND_ASSIGN(UserManager); |
277 }; | 280 }; |
278 | 281 |
279 typedef std::vector<UserManager::User> UserVector; | 282 typedef std::vector<UserManager::User> UserVector; |
280 | 283 |
281 } // namespace chromeos | 284 } // namespace chromeos |
282 | 285 |
283 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 286 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |