Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1947)

Unified Diff: Source/modules/crypto/SubtleCrypto.idl

Issue 23164012: WebCrypto: Remove support for multi-part operations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/crypto/SubtleCrypto.idl
diff --git a/Source/modules/crypto/SubtleCrypto.idl b/Source/modules/crypto/SubtleCrypto.idl
index b283fe25c2b1e596f4576c6c00769bf455fdeeb0..fd58080f6e224fc458a5cc070df63875c039ec6f 100644
--- a/Source/modules/crypto/SubtleCrypto.idl
+++ b/Source/modules/crypto/SubtleCrypto.idl
@@ -31,11 +31,12 @@
[
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);
+ // These all return Promises.
abarth-chromium 2013/08/16 04:53:07 If you look at other code that uses Promises, we'r
eroman 2013/08/16 22:59:41 Done. Note that I couldn't find other IDL files w
+ [RaisesException] any encrypt(Dictionary algorithm, Key key, ArrayBufferView data);
+ [RaisesException] any decrypt(Dictionary algorithm, Key key, ArrayBufferView data);
+ [RaisesException] any sign(Dictionary algorithm, Key key, ArrayBufferView data);
+ [RaisesException, ImplementedAs=verifySignature] any verify(Dictionary algorithm, Key key, ArrayBufferView signature, ArrayBufferView data);
+ [RaisesException] any 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);

Powered by Google App Engine
This is Rietveld 408576698