Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 module password_manager.mojom; | 5 module password_manager.mojom; |
| 6 | 6 |
| 7 import "url/mojo/origin.mojom"; | 7 import "url/mojo/origin.mojom"; |
| 8 import "url/mojo/url.mojom"; | 8 import "url/mojo/url.mojom"; |
| 9 | 9 |
| 10 enum CredentialType { | 10 enum CredentialType { |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 string name; | 33 string name; |
| 34 url.mojom.Url icon; | 34 url.mojom.Url icon; |
| 35 string password; | 35 string password; |
| 36 url.mojom.Origin federation; | 36 url.mojom.Origin federation; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 interface CredentialManager { | 39 interface CredentialManager { |
| 40 // Store credential. For navigator.credentials.store(). | 40 // Store credential. For navigator.credentials.store(). |
| 41 Store(CredentialInfo credential) => (); | 41 Store(CredentialInfo credential) => (); |
| 42 | 42 |
| 43 // Require user mediation. For navigator.credentials.requireUserMediation(). | 43 // Require user mediation. For navigator.credentials.requireUserMediation(). |
|
Mike West
2017/05/23 18:54:32
Nit: Replace here too.
vasilii
2017/05/24 10:02:13
Done.
| |
| 44 RequireUserMediation() => (); | 44 PreventSilentAccess() => (); |
| 45 | 45 |
| 46 // Get Credential. For navigator.credentials.get(). | 46 // Get Credential. For navigator.credentials.get(). |
| 47 // The result callback will return a non-null and valid CredentialInfo | 47 // The result callback will return a non-null and valid CredentialInfo |
| 48 // if succeeded, or null with a CredentialManagerError if failed. | 48 // if succeeded, or null with a CredentialManagerError if failed. |
| 49 Get(CredentialMediationRequirement mediation, | 49 Get(CredentialMediationRequirement mediation, |
| 50 bool include_passwords, | 50 bool include_passwords, |
| 51 array<url.mojom.Url> federations) | 51 array<url.mojom.Url> federations) |
| 52 => (CredentialManagerError error, CredentialInfo? credential); | 52 => (CredentialManagerError error, CredentialInfo? credential); |
| 53 }; | 53 }; |
| OLD | NEW |