Index: Source/modules/crypto/Algorithm.cpp |
diff --git a/Source/modules/crypto/WorkerCrypto.cpp b/Source/modules/crypto/Algorithm.cpp |
similarity index 85% |
copy from Source/modules/crypto/WorkerCrypto.cpp |
copy to Source/modules/crypto/Algorithm.cpp |
index d77d0978de73288917dc7bb1fd259245715e5ff4..c6a9b8e3b5296b68683bbf241b1745938bba2630 100644 |
--- a/Source/modules/crypto/WorkerCrypto.cpp |
+++ b/Source/modules/crypto/Algorithm.cpp |
@@ -29,13 +29,21 @@ |
*/ |
#include "config.h" |
-#include "modules/crypto/WorkerCrypto.h" |
+#include "modules/crypto/Algorithm.h" |
namespace WebCore { |
-WorkerCrypto::WorkerCrypto() |
+Algorithm::Algorithm(const WebKit::WebCryptoAlgorithm& algorithm) |
+ : m_algorithm(algorithm) |
{ |
ScriptWrappable::init(this); |
} |
+const String& Algorithm::name() |
+{ |
+ if (m_name.isNull()) |
+ m_name = m_algorithm.algorithmName(); |
+ return m_name; |
} |
+ |
+} // namespace WebCore |