Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Unified Diff: ash/public/interfaces/user_info.mojom

Issue 2911493002: cros: Pull user info from session_controller_client.mojom into separate mojom. (Closed)
Patch Set: Fix ordering in typemaps Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/public/interfaces/typemaps.gni ('k') | ash/public/interfaces/user_info.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/user_info.mojom
diff --git a/ash/public/interfaces/user_info.mojom b/ash/public/interfaces/user_info.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6fba255a0db5473e15d0a6f0961a7e4abdfadb44
--- /dev/null
+++ b/ash/public/interfaces/user_info.mojom
@@ -0,0 +1,47 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module ash.mojom;
+
+import "components/signin/public/interfaces/account_id.mojom";
+import "ui/gfx/image/mojo/image.mojom";
+
+// Matches user_manager::UserType.
+enum UserType {
+ // Regular user, has a user name and password.
+ REGULAR,
+
+ // Guest user, logs in without authentication.
+ GUEST,
+
+ // Public account user, logs in without authentication. Available only if
+ // enabled through policy.
+ PUBLIC_ACCOUNT,
+
+ // Supervised user, logs in only with local authentication.
+ SUPERVISED,
+
+ // Kiosk app robot, logs in without authentication.
+ KIOSK,
+
+ // Child user, with supervised options.
+ CHILD,
+
+ // Android app in kiosk mode, logs in without authentication.
+ ARC_KIOSK,
+
+ // Active Directory user. Authenticates against Active Directory server.
+ ACTIVE_DIRECTORY,
+};
+
+
+// Info about a user. May be sent repeatedly for a single user because
+// individual fields may change (e.g. the avatar image or custodians).
+struct UserInfo {
+ UserType type;
+ signin.mojom.AccountId account_id;
+ string display_name;
+ string display_email;
+ gfx.mojom.ImageSkia avatar;
+};
« no previous file with comments | « ash/public/interfaces/typemaps.gni ('k') | ash/public/interfaces/user_info.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698