| 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_USER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "components/user_manager/user_image/user_image.h" | 13 #include "components/user_manager/user_image/user_image.h" |
| 14 #include "components/user_manager/user_info.h" | 14 #include "components/user_manager/user_info.h" |
| 15 #include "components/user_manager/user_type.h" | 15 #include "components/user_manager/user_type.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 #include "ui/gfx/image/image_skia.h" | 17 #include "ui/gfx/image/image_skia.h" |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 extern const int kDefaultImagesCount; |
| 22 |
| 21 // A class representing information about a previously logged in user. | 23 // A class representing information about a previously logged in user. |
| 22 // Each user has a canonical email (username), returned by |email()| and | 24 // Each user has a canonical email (username), returned by |email()| and |
| 23 // may have a different displayed email (in the raw form as entered by user), | 25 // may have a different displayed email (in the raw form as entered by user), |
| 24 // returned by |displayed_email()|. | 26 // returned by |displayed_email()|. |
| 25 // Displayed emails are for use in UI only, anywhere else users must be referred | 27 // Displayed emails are for use in UI only, anywhere else users must be referred |
| 26 // to by |email()|. | 28 // to by |email()|. |
| 27 class User : public user_manager::UserInfo { | 29 class User : public user_manager::UserInfo { |
| 28 public: | 30 public: |
| 29 // User OAuth token status according to the last check. | 31 // User OAuth token status according to the last check. |
| 30 // Please note that enum values 1 and 2 were used for OAuth1 status and are | 32 // Please note that enum values 1 and 2 were used for OAuth1 status and are |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 260 |
| 259 DISALLOW_COPY_AND_ASSIGN(User); | 261 DISALLOW_COPY_AND_ASSIGN(User); |
| 260 }; | 262 }; |
| 261 | 263 |
| 262 // List of known users. | 264 // List of known users. |
| 263 typedef std::vector<User*> UserList; | 265 typedef std::vector<User*> UserList; |
| 264 | 266 |
| 265 } // namespace chromeos | 267 } // namespace chromeos |
| 266 | 268 |
| 267 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ | 269 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_H_ |
| OLD | NEW |