| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Returns the index of user's default image or -1 if the image is not | 119 // Returns the index of user's default image or -1 if the image is not |
| 120 // default. | 120 // default. |
| 121 int GetUserDefaultImageIndex(const std::string& username); | 121 int GetUserDefaultImageIndex(const std::string& username); |
| 122 | 122 |
| 123 // chromeos::UserImageLoader::Delegate implementation. | 123 // chromeos::UserImageLoader::Delegate implementation. |
| 124 virtual void OnImageLoaded(const std::string& username, | 124 virtual void OnImageLoaded(const std::string& username, |
| 125 const SkBitmap& image, | 125 const SkBitmap& image, |
| 126 bool save_image); | 126 bool save_image); |
| 127 | 127 |
| 128 // NotificationObserver implementation. | 128 // NotificationObserver implementation. |
| 129 virtual void Observe(NotificationType type, | 129 virtual void Observe(int type, |
| 130 const NotificationSource& source, | 130 const NotificationSource& source, |
| 131 const NotificationDetails& details); | 131 const NotificationDetails& details); |
| 132 | 132 |
| 133 // Accessor for current_user_is_owner_ | 133 // Accessor for current_user_is_owner_ |
| 134 virtual bool current_user_is_owner() const; | 134 virtual bool current_user_is_owner() const; |
| 135 virtual void set_current_user_is_owner(bool current_user_is_owner); | 135 virtual void set_current_user_is_owner(bool current_user_is_owner); |
| 136 | 136 |
| 137 // Accessor for current_user_is_new_. | 137 // Accessor for current_user_is_new_. |
| 138 bool current_user_is_new() const { | 138 bool current_user_is_new() const { |
| 139 return current_user_is_new_; | 139 return current_user_is_new_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 friend struct base::DefaultLazyInstanceTraits<UserManager>; | 186 friend struct base::DefaultLazyInstanceTraits<UserManager>; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(UserManager); | 188 DISALLOW_COPY_AND_ASSIGN(UserManager); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 typedef std::vector<UserManager::User> UserVector; | 191 typedef std::vector<UserManager::User> UserVector; |
| 192 | 192 |
| 193 } // namespace chromeos | 193 } // namespace chromeos |
| 194 | 194 |
| 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |