OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // <code>chrome.easyUnlockPrivate</code> API that provides hooks to Chrome to | 5 // <code>chrome.easyUnlockPrivate</code> API that provides hooks to Chrome to |
6 // be used by Easy Unlock component app. | 6 // be used by Easy Unlock component app. |
7 namespace easyUnlockPrivate { | 7 namespace easyUnlockPrivate { |
8 // Signature algorithms supported by the crypto library methods used by | 8 // Signature algorithms supported by the crypto library methods used by |
9 // Easy Unlock. | 9 // Easy Unlock. |
10 enum SignatureType { | 10 enum SignatureType { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Websafe base64 encoded persistent symmetric key. | 138 // Websafe base64 encoded persistent symmetric key. |
139 DOMString? psk; | 139 DOMString? psk; |
140 }; | 140 }; |
141 | 141 |
142 // The information about a user associated with Easy unlock service. | 142 // The information about a user associated with Easy unlock service. |
143 dictionary UserInfo { | 143 dictionary UserInfo { |
144 // The user id. | 144 // The user id. |
145 DOMString userId; | 145 DOMString userId; |
146 | 146 |
| 147 // A stable identifier for the user and device. If a user is removed and |
| 148 // added to the same device, this id will remain the same. However, this id |
| 149 // will be different if another user is added to the same device or if the |
| 150 // same user is added on another device. |
| 151 DOMString deviceUserId; |
| 152 |
147 // Whether the user is logged in. If not logged in, the app is running on | 153 // Whether the user is logged in. If not logged in, the app is running on |
148 // the signin screen. | 154 // the signin screen. |
149 boolean loggedIn; | 155 boolean loggedIn; |
150 | 156 |
151 // Whether to require the remote device to be in very close proximity before | 157 // Whether to require the remote device to be in very close proximity before |
152 // allowing unlock (~1 feet). | 158 // allowing unlock (~1 feet). |
153 boolean requireCloseProximity; | 159 boolean requireCloseProximity; |
154 | 160 |
155 // Whether all data needed to use Easy unlock service has been loaded for | 161 // Whether all data needed to use Easy unlock service has been loaded for |
156 // the user. | 162 // the user. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // Event fired when the data for the user currently associated with | 387 // Event fired when the data for the user currently associated with |
382 // Easy unlock service is updated. | 388 // Easy unlock service is updated. |
383 // |userInfo| The updated user information. | 389 // |userInfo| The updated user information. |
384 static void onUserInfoUpdated(UserInfo userInfo); | 390 static void onUserInfoUpdated(UserInfo userInfo); |
385 | 391 |
386 // Event fired at the end of Easy bootstrap to start auto pairing so | 392 // Event fired at the end of Easy bootstrap to start auto pairing so |
387 // that a proper cryptohome key could be generated for the user. | 393 // that a proper cryptohome key could be generated for the user. |
388 static void onStartAutoPairing(); | 394 static void onStartAutoPairing(); |
389 }; | 395 }; |
390 }; | 396 }; |
OLD | NEW |