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

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

Issue 222003006: [webcrypto] Don't throw any extra WebIDL exceptions from WebCrypto methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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 | « LayoutTests/crypto/wrapKey-badParameters-expected.txt ('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 f70521de72e7755cb538211ffacef58c137ec812..fa600791c7dfbd398e1f5eaa6547a3797b79ed6b 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -41,7 +41,6 @@
namespace WebCore {
class Dictionary;
-class ExceptionState;
class Key;
class SubtleCrypto : public RefCountedWillBeGarbageCollectedFinalized<SubtleCrypto>, public ScriptWrappable {
@@ -51,19 +50,19 @@ public:
return adoptRefWillBeNoop(new SubtleCrypto());
}
- ScriptPromise encrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&);
- ScriptPromise decrypt(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&);
- ScriptPromise sign(const Dictionary&, Key*, ArrayBufferView* data, ExceptionState&);
+ ScriptPromise encrypt(const Dictionary&, Key*, ArrayBufferView* data);
+ ScriptPromise decrypt(const Dictionary&, Key*, ArrayBufferView* data);
+ ScriptPromise sign(const Dictionary&, Key*, ArrayBufferView* data);
// Note that this is not named "verify" because when compiling on Mac that expands to a macro and breaks.
- ScriptPromise verifySignature(const Dictionary&, Key*, ArrayBufferView* signature, ArrayBufferView* data, ExceptionState&);
- ScriptPromise digest(const Dictionary&, ArrayBufferView* data, ExceptionState&);
+ ScriptPromise verifySignature(const Dictionary&, Key*, ArrayBufferView* signature, ArrayBufferView* data);
+ ScriptPromise digest(const Dictionary&, ArrayBufferView* data);
- 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&);
+ ScriptPromise generateKey(const Dictionary&, bool extractable, const Vector<String>& keyUsages);
+ ScriptPromise importKey(const String&, ArrayBufferView*, const Dictionary&, bool extractable, const Vector<String>& keyUsages);
+ ScriptPromise exportKey(const String&, Key*);
- ScriptPromise wrapKey(const String&, Key*, Key*, const Dictionary&, ExceptionState&);
- ScriptPromise unwrapKey(const String&, ArrayBufferView*, Key*, const Dictionary&, const Dictionary&, bool, const Vector<String>&, ExceptionState&);
+ ScriptPromise wrapKey(const String&, Key*, Key*, const Dictionary&);
+ ScriptPromise unwrapKey(const String&, ArrayBufferView*, Key*, const Dictionary&, const Dictionary&, bool, const Vector<String>&);
void trace(Visitor*) { }
« no previous file with comments | « LayoutTests/crypto/wrapKey-badParameters-expected.txt ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698