| 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 [use_movable_types=true] 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 { |
| 11 HMAC_SHA256, | 11 HMAC_SHA256, |
| 12 ECDSA_P256_SHA256 | 12 ECDSA_P256_SHA256 |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 // Encryption algorithms supported by the crypto library methods used by | 15 // Encryption algorithms supported by the crypto library methods used by |
| 16 // Easy Unlock. | 16 // Easy Unlock. |
| 17 enum EncryptionType { | 17 enum EncryptionType { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 static void onDataReceived(long connectionId, | 451 static void onDataReceived(long connectionId, |
| 452 ArrayBuffer data); | 452 ArrayBuffer data); |
| 453 | 453 |
| 454 // Event fired when |connectionId| sends |data|. |success| is true | 454 // Event fired when |connectionId| sends |data|. |success| is true |
| 455 // if the send operation was successful. | 455 // if the send operation was successful. |
| 456 static void onSendCompleted(long connectionId, | 456 static void onSendCompleted(long connectionId, |
| 457 ArrayBuffer data, | 457 ArrayBuffer data, |
| 458 boolean success); | 458 boolean success); |
| 459 }; | 459 }; |
| 460 }; | 460 }; |
| OLD | NEW |