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

Side by Side Diff: components/password_manager/content/public/interfaces/credential_manager.mojom

Issue 1762603002: Switch components/password_manager code from IPC messages to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Impl done, unit_tests and browser_tests not ready yet Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 password_manager.mojom;
6
7 import "url/mojo/origin.mojom";
8
9 enum CredentialType {
10 EMPTY,
11 PASSWORD,
12 FEDERATED
13 };
14
15 enum CredentialManagerError {
16 SUCCESS,
17 DISABLED,
18 PENDINGREQUEST,
19 PASSWORDSTOREUNAVAILABLE,
20 UNKNOWN
21 };
22
23 struct CredentialInfo {
24 CredentialType type;
25 string id;
26 string name;
27 string icon;
28 string password;
29 url.mojom.Origin federation;
30 };
31
32 interface CredentialManager {
33 // Store credential. For navigator.credentials.store().
34 Store(CredentialInfo credential) => ();
35
36 // Require user mediation. For navigator.credentials.requireUserMediation().
37 RequireUserMediation() => ();
38
39 // Request Credential. For navigator.credentials.get().
40 // The result callback will return a non-null and valid CredentialInfo if succ eeded,
vabr (Chromium) 2016/03/09 16:26:29 I'm not sure about the indentation rules for .mojo
leonhsl(Using Gerrit) 2016/03/10 06:42:41 Done. Keep lines length within 80 characters and m
41 // or null with a CredentialManagerError if failed.
42 Get(bool zero_click_only,
43 bool include_passwords,
44 array<string> federations) => (CredentialManagerError error, CredentialInf o? credential);
45 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698