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

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

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/CryptoResult.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 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();
« no previous file with comments | « Source/modules/crypto/CryptoResult.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698