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

Unified Diff: services/identity/public/interfaces/identity_manager.mojom

Issue 2753753007: Introduce Identity Service and its initial usage (Closed)
Patch Set: Self-review Created 3 years, 9 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
Index: services/identity/public/interfaces/identity_manager.mojom
diff --git a/services/identity/public/interfaces/identity_manager.mojom b/services/identity/public/interfaces/identity_manager.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..2e95090621971137ed1348c320f01ac936f045fe
--- /dev/null
+++ b/services/identity/public/interfaces/identity_manager.mojom
@@ -0,0 +1,18 @@
+// 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 identity.mojom;
+
+// TODO(blundell): Move account_id.mojom to
+// //services/identity/public/interfaces.
+import "components/signin/public/interfaces/account_id.mojom";
+
+// Gives access to information about the user's Google accounts.
+interface IdentityManager {
+
Ken Rockot(use gerrit already) 2017/03/21 14:53:09 nitty nit: I know we don't have a mojom style guid
blundell 2017/03/24 09:37:59 Done.
+ // Returns the AccountId for the Google account that serves as the user's
+ // primary account, or null if the user has no primary account (e.g., if they
+ // are not signed in).
+ GetPrimaryAccountId() => (signin.mojom.AccountId? account_id);
+};
« services/identity/README.md ('K') | « services/identity/public/interfaces/constants.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698