Chromium Code Reviews| Index: Source/modules/crypto/Algorithm.cpp |
| diff --git a/Source/modules/crypto/WorkerCrypto.cpp b/Source/modules/crypto/Algorithm.cpp |
| similarity index 87% |
| copy from Source/modules/crypto/WorkerCrypto.cpp |
| copy to Source/modules/crypto/Algorithm.cpp |
| index d77d0978de73288917dc7bb1fd259245715e5ff4..9d52a0ae4f2d160bcd4b3a0169cbc2534a93fa09 100644 |
| --- a/Source/modules/crypto/WorkerCrypto.cpp |
| +++ b/Source/modules/crypto/Algorithm.cpp |
| @@ -29,13 +29,19 @@ |
| */ |
| #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); |
| } |
| +String Algorithm::name() const |
|
abarth-chromium
2013/07/02 06:46:36
This should return a const String&
eroman
2013/07/02 08:12:27
Done (however this did mean adding a new field, si
|
| +{ |
| + return m_algorithm.algorithmName(); |
| } |
| + |
| +} // namespace WebCore |