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); |
| 265 |
| 266 // Tries to sign-in the current user with a secret obtained by decrypting |
| 267 // the sign-in challenge. Check chrome.runtime.lastError for failures. Upon |
| 268 // success, the user session will be started. |
| 269 static void trySignInSecret(ArrayBuffer signInSecret, |
| 270 EmptyCallback callback); |
262 }; | 271 }; |
263 }; | 272 }; |
OLD | NEW |