Chromium Code Reviews| Index: Source/modules/crypto/AesKeyGenParams.cpp |
| diff --git a/Source/modules/crypto/WorkerCrypto.cpp b/Source/modules/crypto/AesKeyGenParams.cpp |
| similarity index 83% |
| copy from Source/modules/crypto/WorkerCrypto.cpp |
| copy to Source/modules/crypto/AesKeyGenParams.cpp |
| index d77d0978de73288917dc7bb1fd259245715e5ff4..3c9169f7611f7171dec547a06fd4d9763376574b 100644 |
| --- a/Source/modules/crypto/WorkerCrypto.cpp |
| +++ b/Source/modules/crypto/AesKeyGenParams.cpp |
| @@ -29,13 +29,21 @@ |
| */ |
| #include "config.h" |
| -#include "modules/crypto/WorkerCrypto.h" |
| +#include "modules/crypto/AesKeyGenParams.h" |
| + |
| +#include "public/platform/WebCryptoAlgorithmParams.h" |
| namespace WebCore { |
| -WorkerCrypto::WorkerCrypto() |
| +unsigned short AesKeyGenParams::length() const |
| { |
| - ScriptWrappable::init(this); |
| + return m_algorithm.getAesKeyGenParams()->length(); |
|
abarth-chromium
2013/07/02 06:46:36
getAesKeyGenParams -> aesKeyGenParams
There's no
eroman
2013/07/02 08:12:27
Done.
|
| } |
| +AesKeyGenParams::AesKeyGenParams(const WebKit::WebCryptoAlgorithm& algorithm) |
| + : Algorithm(algorithm) |
| +{ |
| + ScriptWrappable::init(this); |
| } |
| + |
| +} // namespace WebCore |