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

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

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.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 d3cf99000b662102e872e99d272109f189f1da90..3df45a197d05977e28b5400d8cbc27464cdfb46e 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -40,18 +40,19 @@ namespace WebCore {
class CryptoOperation;
class Dictionary;
-class ExceptionState;
+
+typedef int ExceptionCode;
class SubtleCrypto : public ScriptWrappable, public RefCounted<SubtleCrypto> {
public:
static PassRefPtr<SubtleCrypto> create() { return adoptRef(new SubtleCrypto()); }
- PassRefPtr<CryptoOperation> encrypt(const Dictionary&, ExceptionState&);
- PassRefPtr<CryptoOperation> decrypt(const Dictionary&, ExceptionState&);
- PassRefPtr<CryptoOperation> sign(const Dictionary&, ExceptionState&);
+ PassRefPtr<CryptoOperation> encrypt(const Dictionary&, ExceptionCode&);
+ PassRefPtr<CryptoOperation> decrypt(const Dictionary&, ExceptionCode&);
+ PassRefPtr<CryptoOperation> sign(const Dictionary&, ExceptionCode&);
// Note that this is not named "verify" because when compiling on Mac that expands to a macro and breaks.
- PassRefPtr<CryptoOperation> verifySignature(const Dictionary&, ExceptionState&);
- PassRefPtr<CryptoOperation> digest(const Dictionary&, ExceptionState&);
+ PassRefPtr<CryptoOperation> verifySignature(const Dictionary&, ExceptionCode&);
+ PassRefPtr<CryptoOperation> digest(const Dictionary&, ExceptionCode&);
private:
SubtleCrypto();
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698