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 COMPONENTS_USER_MANAGER_USER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_H_ |
6 #define COMPONENTS_USER_MANAGER_USER_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // The displayed user name. | 84 // The displayed user name. |
85 base::string16 display_name() const { return display_name_; } | 85 base::string16 display_name() const { return display_name_; } |
86 | 86 |
87 // UserInfo | 87 // UserInfo |
88 virtual std::string GetEmail() const OVERRIDE; | 88 virtual std::string GetEmail() const OVERRIDE; |
89 virtual base::string16 GetDisplayName() const OVERRIDE; | 89 virtual base::string16 GetDisplayName() const OVERRIDE; |
90 virtual base::string16 GetGivenName() const OVERRIDE; | 90 virtual base::string16 GetGivenName() const OVERRIDE; |
91 virtual const gfx::ImageSkia& GetImage() const OVERRIDE; | 91 virtual const gfx::ImageSkia& GetImage() const OVERRIDE; |
92 virtual std::string GetUserID() const OVERRIDE; | 92 virtual std::string GetUserID() const OVERRIDE; |
93 | 93 |
| 94 // Is user supervised. |
| 95 virtual bool IsSupervised() const; |
| 96 virtual void SetIsSupervised(bool is_supervised); |
| 97 |
94 // Returns the account name part of the email. Use the display form of the | 98 // Returns the account name part of the email. Use the display form of the |
95 // email if available and use_display_name == true. Otherwise use canonical. | 99 // email if available and use_display_name == true. Otherwise use canonical. |
96 std::string GetAccountName(bool use_display_email) const; | 100 std::string GetAccountName(bool use_display_email) const; |
97 | 101 |
98 // Whether the user has a default image. | 102 // Whether the user has a default image. |
99 bool HasDefaultImage() const; | 103 bool HasDefaultImage() const; |
100 | 104 |
101 // True if user image can be synced. | 105 // True if user image can be synced. |
102 virtual bool CanSyncImage() const; | 106 virtual bool CanSyncImage() const; |
103 | 107 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 272 |
269 DISALLOW_COPY_AND_ASSIGN(User); | 273 DISALLOW_COPY_AND_ASSIGN(User); |
270 }; | 274 }; |
271 | 275 |
272 // List of known users. | 276 // List of known users. |
273 typedef std::vector<User*> UserList; | 277 typedef std::vector<User*> UserList; |
274 | 278 |
275 } // namespace user_manager | 279 } // namespace user_manager |
276 | 280 |
277 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 281 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
OLD | NEW |