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

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

Issue 23164012: WebCrypto: Remove support for multi-part operations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Sync to tot 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
« no previous file with comments | « Source/modules/crypto/KeyOperation.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.h
diff --git a/Source/modules/crypto/SubtleCrypto.h b/Source/modules/crypto/SubtleCrypto.h
index c39dd83947dbc8ecb9fdcc1d27d3126b28baaa01..b320157fd106a1fd86320c60b7998d530cfc3e67 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -39,7 +39,6 @@
namespace WebCore {
-class CryptoOperation;
class Dictionary;
class ExceptionState;
class Key;
@@ -48,12 +47,12 @@ class SubtleCrypto : public ScriptWrappable, public RefCounted<SubtleCrypto> {
public:
static PassRefPtr<SubtleCrypto> create() { return adoptRef(new SubtleCrypto()); }
- PassRefPtr<CryptoOperation> encrypt(const Dictionary&, Key*, ExceptionState&);
- PassRefPtr<CryptoOperation> decrypt(const Dictionary&, Key*, ExceptionState&);
- PassRefPtr<CryptoOperation> sign(const Dictionary&, Key*, ExceptionState&);
+ ScriptObject encrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&);
+ ScriptObject decrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&);
+ ScriptObject sign(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&);
// Note that this is not named "verify" because when compiling on Mac that expands to a macro and breaks.
- PassRefPtr<CryptoOperation> verifySignature(const Dictionary&, Key*, ArrayBufferView* signature, ExceptionState&);
- PassRefPtr<CryptoOperation> digest(const Dictionary&, ExceptionState&);
+ ScriptObject verifySignature(const Dictionary&, Key*, ArrayBufferView* signature, ArrayBufferView* data, ExceptionState&);
+ ScriptObject digest(const Dictionary&, ArrayBufferView* data, ExceptionState&);
ScriptObject generateKey(const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionState&);
ScriptObject importKey(const String&, ArrayBufferView*, const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionState&);
« no previous file with comments | « Source/modules/crypto/KeyOperation.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698