Chromium Code Reviews| Index: content/child/webcrypto/webcrypto_impl.cc |
| diff --git a/content/child/webcrypto/webcrypto_impl.cc b/content/child/webcrypto/webcrypto_impl.cc |
| index 076df0d4a3e14296ef9ca7f06f6207f9d6fffd60..46839ee9c8b082826d769ad3520e77f8a857414b 100644 |
| --- a/content/child/webcrypto/webcrypto_impl.cc |
| +++ b/content/child/webcrypto/webcrypto_impl.cc |
| @@ -5,6 +5,7 @@ |
| #include "content/child/webcrypto/webcrypto_impl.h" |
| #include "base/logging.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "content/child/webcrypto/crypto_data.h" |
| #include "content/child/webcrypto/shared_crypto.h" |
| #include "content/child/webcrypto/status.h" |
| @@ -248,6 +249,13 @@ bool WebCryptoImpl::digestSynchronous( |
| .IsSuccess(); |
| } |
| +blink::WebCryptoDigestor* WebCryptoImpl::createDigestor( |
| + const blink::WebCryptoAlgorithmId algorithm_id) { |
| + blink::WebCryptoAlgorithm algorithm = |
| + blink::WebCryptoAlgorithm::adoptParamsAndCreate(algorithm_id, NULL); |
|
eroman
2014/03/25 23:26:23
Let's get rid of this, and have the shared_crypto
jww
2014/03/26 00:42:31
Done.
|
| + return webcrypto::CreateDigestor(algorithm); |
| +} |
| + |
| bool WebCryptoImpl::deserializeKeyForClone( |
| const blink::WebCryptoKeyAlgorithm& algorithm, |
| blink::WebCryptoKeyType type, |