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 | |
9 // Allows clients (e.g. Chrome browser) to control the ash lock screen. | |
10 interface LockScreen { | |
11 // Sets the client interface. | |
12 SetClient(LockScreenClient client); | |
13 | |
14 // Requests to show error message in the ash lock screen. | |
15 // |login_attempts|: The number of the login authentication attempts. | |
16 // |error_text|: The error text to be shown in lock screen. | |
17 // |help_link_text|: The help link to be shown in lock screen. | |
18 // |help_topic_id|: The id of the help app topic regarding this error. | |
19 ShowErrorMessage(int32 login_attempts, | |
20 string error_text, | |
21 string help_link_text, | |
22 int32 help_topic_id); | |
23 | |
24 // Requests to close any displayed error messages in ash lock screen. | |
25 ClearErrors(); | |
26 }; | |
27 | |
28 // Allows ash lock screen to control a client (e.g. Chrome browser). Requests | |
29 // often involve preferences or talk to cryptohome that is not available to ash. | |
30 interface LockScreenClient { | |
31 // Request user authentication in chrome. | |
32 // If auth succeeds: | |
33 // chrome will hide the lock screen and clear any displayed error messages. | |
34 // If auth fails: | |
35 // chrome will request lock screen to show error messages. | |
36 // |account_id|: The account id of the user we are authenticating. | |
37 // |hashed_password|: The hashed password of the user. | |
38 // |authenticated_by_pin|: True if we are using pin to authenticate. | |
39 AuthenticateUser(signin.mojom.AccountId account_id, | |
Tom Sepez
2017/05/16 21:50:15
The code under this is still checking for number o
xiaoyinh(OOO Sep 11-29)
2017/05/16 22:25:37
Correct, we should count the number of attempts in
| |
40 string hashed_password, | |
41 bool authenticated_by_pin); | |
42 }; | |
OLD | NEW |