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 [nodoc] namespace easyUnlockPrivate { | 7 [nodoc] 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
252 static void clearPermitAccess(optional EmptyCallback callback); | 252 static void clearPermitAccess(optional EmptyCallback callback); |
253 | 253 |
254 // Saves the remote device list. | 254 // Saves the remote device list. |
255 // |devices|: The list of remote devices to be saved. | 255 // |devices|: The list of remote devices to be saved. |
256 // |callback|: Called to indicate success or failure. | 256 // |callback|: Called to indicate success or failure. |
257 static void setRemoteDevices(Device[] devices, | 257 static void setRemoteDevices(Device[] devices, |
258 optional EmptyCallback callback); | 258 optional EmptyCallback callback); |
259 | 259 |
260 // Gets the remote device list. | 260 // Gets the remote device list. |
261 static void getRemoteDevices(GetRemoteDevicesCallback callback); | 261 static void getRemoteDevices(GetRemoteDevicesCallback callback); |
262 | |
263 // Gets the sign-in challenge for the current user. | |
264 static void getSignInChallenge(DataCallback callback); | |
Tim Song
2014/09/08 23:54:23
Should we pass m2 here and return the wrapped chal
xiyuan
2014/09/09 02:35:28
Yep, makes sense.
tbarzic
2014/09/09 19:55:49
I'm nit sure that we'll be able to create the mess
Tim Song
2014/09/10 00:47:13
I'm creating the wrapper SecureMessage in the app
| |
265 | |
266 // Tries to sign-in the current user with a secret obtained by decrypting | |
Yoyo Zhou
2014/09/10 01:16:00
This says something about trying, but it doesn't s
Tim Song
2014/09/10 03:07:32
Done.
| |
267 // the sign-in challenge. | |
268 static void trySignInSecret(ArrayBuffer signInSecret, | |
269 EmptyCallback callback); | |
262 }; | 270 }; |
263 }; | 271 }; |
OLD | NEW |