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

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

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/SubtleCrypto.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.cpp
diff --git a/Source/modules/crypto/SubtleCrypto.cpp b/Source/modules/crypto/SubtleCrypto.cpp
index 57c9e98b0b61f5d9ee9a9c4ce9a2022e93f4250f..4b3153eb6175204a6271316e75aa8273ea372c9f 100644
--- a/Source/modules/crypto/SubtleCrypto.cpp
+++ b/Source/modules/crypto/SubtleCrypto.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "modules/crypto/SubtleCrypto.h"
-#include "bindings/v8/ExceptionState.h"
+#include "core/dom/ExceptionCode.h"
#include "modules/crypto/CryptoOperation.h"
#include "modules/crypto/NormalizeAlgorithm.h"
#include "public/platform/WebArrayBuffer.h" // FIXME: temporary
@@ -97,42 +97,42 @@ SubtleCrypto::SubtleCrypto()
ScriptWrappable::init(this);
}
-PassRefPtr<CryptoOperation> SubtleCrypto::encrypt(const Dictionary& rawAlgorithm, ExceptionState& es)
+PassRefPtr<CryptoOperation> SubtleCrypto::encrypt(const Dictionary& rawAlgorithm, ExceptionCode& ec)
{
WebKit::WebCryptoAlgorithm algorithm;
- if (!normalizeAlgorithm(rawAlgorithm, Encrypt, algorithm, es))
+ if (!normalizeAlgorithm(rawAlgorithm, Encrypt, algorithm, ec))
return 0;
return CryptoOperation::create(algorithm, new DummyOperation);
}
-PassRefPtr<CryptoOperation> SubtleCrypto::decrypt(const Dictionary& rawAlgorithm, ExceptionState& es)
+PassRefPtr<CryptoOperation> SubtleCrypto::decrypt(const Dictionary& rawAlgorithm, ExceptionCode& ec)
{
WebKit::WebCryptoAlgorithm algorithm;
- if (!normalizeAlgorithm(rawAlgorithm, Decrypt, algorithm, es))
+ if (!normalizeAlgorithm(rawAlgorithm, Decrypt, algorithm, ec))
return 0;
return CryptoOperation::create(algorithm, new DummyOperation);
}
-PassRefPtr<CryptoOperation> SubtleCrypto::sign(const Dictionary& rawAlgorithm, ExceptionState& es)
+PassRefPtr<CryptoOperation> SubtleCrypto::sign(const Dictionary& rawAlgorithm, ExceptionCode& ec)
{
WebKit::WebCryptoAlgorithm algorithm;
- if (!normalizeAlgorithm(rawAlgorithm, Sign, algorithm, es))
+ if (!normalizeAlgorithm(rawAlgorithm, Sign, algorithm, ec))
return 0;
return CryptoOperation::create(algorithm, new DummyOperation);
}
-PassRefPtr<CryptoOperation> SubtleCrypto::verifySignature(const Dictionary& rawAlgorithm, ExceptionState& es)
+PassRefPtr<CryptoOperation> SubtleCrypto::verifySignature(const Dictionary& rawAlgorithm, ExceptionCode& ec)
{
WebKit::WebCryptoAlgorithm algorithm;
- if (!normalizeAlgorithm(rawAlgorithm, Verify, algorithm, es))
+ if (!normalizeAlgorithm(rawAlgorithm, Verify, algorithm, ec))
return 0;
return CryptoOperation::create(algorithm, new DummyOperation);
}
-PassRefPtr<CryptoOperation> SubtleCrypto::digest(const Dictionary& rawAlgorithm, ExceptionState& es)
+PassRefPtr<CryptoOperation> SubtleCrypto::digest(const Dictionary& rawAlgorithm, ExceptionCode& ec)
{
WebKit::WebCryptoAlgorithm algorithm;
- if (!normalizeAlgorithm(rawAlgorithm, Digest, algorithm, es))
+ if (!normalizeAlgorithm(rawAlgorithm, Digest, algorithm, ec))
return 0;
// FIXME: Create the WebCryptoImplementation by calling out to
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698