| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module ash.mojom; |
| 6 |
| 7 import "components/signin/public/interfaces/account_id.mojom"; |
| 8 import "ui/gfx/image/mojo/image.mojom"; |
| 9 |
| 10 // Matches user_manager::UserType. |
| 11 enum UserType { |
| 12 // Regular user, has a user name and password. |
| 13 REGULAR, |
| 14 |
| 15 // Guest user, logs in without authentication. |
| 16 GUEST, |
| 17 |
| 18 // Public account user, logs in without authentication. Available only if |
| 19 // enabled through policy. |
| 20 PUBLIC_ACCOUNT, |
| 21 |
| 22 // Supervised user, logs in only with local authentication. |
| 23 SUPERVISED, |
| 24 |
| 25 // Kiosk app robot, logs in without authentication. |
| 26 KIOSK, |
| 27 |
| 28 // Child user, with supervised options. |
| 29 CHILD, |
| 30 |
| 31 // Android app in kiosk mode, logs in without authentication. |
| 32 ARC_KIOSK, |
| 33 |
| 34 // Active Directory user. Authenticates against Active Directory server. |
| 35 ACTIVE_DIRECTORY, |
| 36 }; |
| 37 |
| 38 |
| 39 // Info about a user. May be sent repeatedly for a single user because |
| 40 // individual fields may change (e.g. the avatar image or custodians). |
| 41 struct UserInfo { |
| 42 UserType type; |
| 43 signin.mojom.AccountId account_id; |
| 44 string display_name; |
| 45 string display_email; |
| 46 gfx.mojom.ImageSkia avatar; |
| 47 }; |
| OLD | NEW |