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

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

Issue 19082002: WebCrypto: Add SHA-1 support to crypto.subtle.digest(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reorder headers even though it violates style Created 7 years, 5 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/CryptoOperation.idl
diff --git a/Source/modules/crypto/CryptoOperation.idl b/Source/modules/crypto/CryptoOperation.idl
index ba683a1b77ed663ff338999db41b9e1e439a4682..8d1b51fe5de755d1017ab2b7bbc0f8c1dee7a96f 100644
--- a/Source/modules/crypto/CryptoOperation.idl
+++ b/Source/modules/crypto/CryptoOperation.idl
@@ -32,4 +32,13 @@
NoInterfaceObject,
] interface CryptoOperation {
readonly attribute Algorithm algorithm;
+
+ CryptoOperation process(ArrayBuffer data);
+ CryptoOperation process(ArrayBufferView data);
+
+ CryptoOperation finish();
+ CryptoOperation abort();
+
+ // FIXME: Hack until CryptoOperation derives from Promise.
+ any promise();
};

Powered by Google App Engine
This is Rietveld 408576698