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

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

Issue 23479016: Introduce Promise mapping to the IDL generator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add hasNoValue Created 7 years, 3 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
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/modules/imagebitmap/ImageBitmapFactories.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.idl
diff --git a/Source/modules/crypto/SubtleCrypto.idl b/Source/modules/crypto/SubtleCrypto.idl
index 6f3ceeea0cf853fe03ec677783afaf04ae6d766d..e4bc3a8c7194b417b057d8dcf5903c5f3f31bd79 100644
--- a/Source/modules/crypto/SubtleCrypto.idl
+++ b/Source/modules/crypto/SubtleCrypto.idl
@@ -28,20 +28,17 @@
* 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] 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] Promise encrypt(Dictionary algorithm, Key key, ArrayBufferView data);
+ [RaisesException] Promise decrypt(Dictionary algorithm, Key key, ArrayBufferView data);
+ [RaisesException] Promise sign(Dictionary algorithm, Key key, ArrayBufferView data);
+ [RaisesException, ImplementedAs=verifySignature] Promise verify(Dictionary algorithm, Key key, ArrayBufferView signature, ArrayBufferView data);
+ [RaisesException] Promise digest(Dictionary algorithm, ArrayBufferView data);
- [RaisesException] PromiseValue generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
- [RaisesException] PromiseValue importKey(DOMString format, ArrayBufferView keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
- [RaisesException] PromiseValue exportKey(DOMString format, Key key);
+ [RaisesException] Promise generateKey(Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
+ [RaisesException] Promise importKey(DOMString format, ArrayBufferView keyData, Dictionary algorithm, boolean extractable, DOMString[] keyUsages);
+ [RaisesException] Promise exportKey(DOMString format, Key key);
};
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/modules/imagebitmap/ImageBitmapFactories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698