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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // (a) existing enumerated constants should never be deleted or reordered, | 71 // (a) existing enumerated constants should never be deleted or reordered, |
72 // (b) new constants should only be appended at the end of the enumeration. | 72 // (b) new constants should only be appended at the end of the enumeration. |
73 enum WallpaperType { | 73 enum WallpaperType { |
74 DAILY = 0, // Surprise wallpaper. Changes once a day if enabled. | 74 DAILY = 0, // Surprise wallpaper. Changes once a day if enabled. |
75 CUSTOMIZED = 1, // Selected by user. | 75 CUSTOMIZED = 1, // Selected by user. |
76 DEFAULT = 2, // Default. | 76 DEFAULT = 2, // Default. |
77 /* UNKNOWN = 3 */ // Removed. | 77 /* UNKNOWN = 3 */ // Removed. |
78 ONLINE = 4, // WallpaperInfo.location denotes an URL. | 78 ONLINE = 4, // WallpaperInfo.location denotes an URL. |
79 POLICY = 5, // Controlled by policy, can't be changed by the user. | 79 POLICY = 5, // Controlled by policy, can't be changed by the user. |
80 THIRDPARTY = 6, // Current wallpaper is set by a third party app. | 80 THIRDPARTY = 6, // Current wallpaper is set by a third party app. |
81 WALLPAPER_TYPE_COUNT = 7 | 81 DEVICE = 7, // Current wallpaper is the device policy controlled |
| 82 // wallpaper. It shows on the login screen if the device |
| 83 // is an enterprise managed device. |
| 84 WALLPAPER_TYPE_COUNT = 8 |
82 }; | 85 }; |
83 | 86 |
84 // Returns true if user type has gaia account. | 87 // Returns true if user type has gaia account. |
85 static bool TypeHasGaiaAccount(UserType user_type); | 88 static bool TypeHasGaiaAccount(UserType user_type); |
86 | 89 |
87 explicit User(const AccountId& account_id); | 90 explicit User(const AccountId& account_id); |
88 ~User() override; | 91 ~User() override; |
89 | 92 |
90 // UserInfo | 93 // UserInfo |
91 std::string GetDisplayEmail() const override; | 94 std::string GetDisplayEmail() const override; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 310 |
308 DISALLOW_COPY_AND_ASSIGN(User); | 311 DISALLOW_COPY_AND_ASSIGN(User); |
309 }; | 312 }; |
310 | 313 |
311 // List of known users. | 314 // List of known users. |
312 using UserList = std::vector<User*>; | 315 using UserList = std::vector<User*>; |
313 | 316 |
314 } // namespace user_manager | 317 } // namespace user_manager |
315 | 318 |
316 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 319 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
OLD | NEW |