Index: modules/crypto/SubtleCrypto.idl |
diff --git a/modules/crypto/SubtleCrypto.idl b/modules/crypto/SubtleCrypto.idl |
index b283fe25c2b1e596f4576c6c00769bf455fdeeb0..9237c6ab6a9441069ebe06fa1121f0a428e8a70a 100644 |
--- a/modules/crypto/SubtleCrypto.idl |
+++ b/modules/crypto/SubtleCrypto.idl |
@@ -28,16 +28,19 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// FIXME: |PromiseValue| should be replaced with |Promise|. http://crbug.com/266700 |
+typedef any PromiseValue; |
+ |
[ |
NoInterfaceObject, |
] interface SubtleCrypto { |
- [RaisesException] CryptoOperation encrypt(Dictionary algorithm, Key key); |
- [RaisesException] CryptoOperation decrypt(Dictionary algorithm, Key key); |
- [RaisesException] CryptoOperation sign(Dictionary algorithm, Key key); |
- [RaisesException, ImplementedAs=verifySignature] CryptoOperation verify(Dictionary algorithm, Key key, ArrayBufferView signature); |
- [RaisesException] CryptoOperation digest(Dictionary algorithm); |
+ [RaisesException] PromiseValue encrypt(Dictionary algorithm, Key key, ArrayBufferView data); |
+ [RaisesException] PromiseValue decrypt(Dictionary algorithm, Key key, ArrayBufferView data); |
+ [RaisesException] PromiseValue sign(Dictionary algorithm, Key key, ArrayBufferView data); |
+ [RaisesException, ImplementedAs=verifySignature] PromiseValue verify(Dictionary algorithm, Key key, ArrayBufferView signature, ArrayBufferView data); |
+ [RaisesException] PromiseValue digest(Dictionary algorithm, ArrayBufferView data); |
- [RaisesException] any generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages); |
- [RaisesException] any importKey(DOMString format, ArrayBufferView keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages); |
+ [RaisesException] PromiseValue generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages); |
+ [RaisesException] PromiseValue importKey(DOMString format, ArrayBufferView keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages); |
}; |