Index: Source/modules/crypto/SubtleCrypto.h |
diff --git a/Source/modules/crypto/SubtleCrypto.h b/Source/modules/crypto/SubtleCrypto.h |
index 8ce3861427cfb47d7b327271836bdf63c8691011..f1503e709738558b5d0dfd5dea0b674cb97aa1a1 100644 |
--- a/Source/modules/crypto/SubtleCrypto.h |
+++ b/Source/modules/crypto/SubtleCrypto.h |
@@ -31,7 +31,7 @@ |
#ifndef SubtleCrypto_h |
#define SubtleCrypto_h |
-#include "bindings/v8/ScriptObject.h" |
+#include "bindings/v8/ScriptPromise.h" |
#include "bindings/v8/ScriptWrappable.h" |
#include "wtf/Forward.h" |
#include "wtf/PassRefPtr.h" |
@@ -47,16 +47,16 @@ class SubtleCrypto : public ScriptWrappable, public RefCounted<SubtleCrypto> { |
public: |
static PassRefPtr<SubtleCrypto> create() { return adoptRef(new SubtleCrypto()); } |
- ScriptObject encrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&); |
- ScriptObject decrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&); |
- ScriptObject sign(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&); |
+ ScriptPromise encrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&); |
+ ScriptPromise decrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&); |
+ ScriptPromise 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. |
- ScriptObject verifySignature(const Dictionary&, Key*, ArrayBufferView* signature, ArrayBufferView* data, ExceptionState&); |
- ScriptObject digest(const Dictionary&, ArrayBufferView* data, ExceptionState&); |
+ ScriptPromise verifySignature(const Dictionary&, Key*, ArrayBufferView* signature, ArrayBufferView* data, ExceptionState&); |
+ ScriptPromise 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&); |
- ScriptObject exportKey(const String&, Key*, ExceptionState&); |
+ ScriptPromise generateKey(const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionState&); |
+ ScriptPromise importKey(const String&, ArrayBufferView*, const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionState&); |
+ ScriptPromise exportKey(const String&, Key*, ExceptionState&); |
private: |
SubtleCrypto(); |