| Index: content/child/webcrypto/algorithm_registry.cc
|
| diff --git a/content/child/webcrypto/algorithm_registry.cc b/content/child/webcrypto/algorithm_registry.cc
|
| index af1b4bdc51d47d002fccee0ba71a6647a48248d8..28e926f6c3fcdccf52115cb7c344298087edcd0f 100644
|
| --- a/content/child/webcrypto/algorithm_registry.cc
|
| +++ b/content/child/webcrypto/algorithm_registry.cc
|
| @@ -15,6 +15,7 @@ namespace webcrypto {
|
|
|
| namespace {
|
|
|
| +// This class is used as a singleton. All methods must be threadsafe.
|
| class AlgorithmRegistry {
|
| public:
|
| AlgorithmRegistry()
|
| @@ -57,14 +58,14 @@ class AlgorithmRegistry {
|
| }
|
|
|
| private:
|
| - scoped_ptr<AlgorithmImplementation> sha_;
|
| - scoped_ptr<AlgorithmImplementation> aes_gcm_;
|
| - scoped_ptr<AlgorithmImplementation> aes_cbc_;
|
| - scoped_ptr<AlgorithmImplementation> aes_ctr_;
|
| - scoped_ptr<AlgorithmImplementation> aes_kw_;
|
| - scoped_ptr<AlgorithmImplementation> hmac_;
|
| - scoped_ptr<AlgorithmImplementation> rsa_ssa_;
|
| - scoped_ptr<AlgorithmImplementation> rsa_oaep_;
|
| + const scoped_ptr<AlgorithmImplementation> sha_;
|
| + const scoped_ptr<AlgorithmImplementation> aes_gcm_;
|
| + const scoped_ptr<AlgorithmImplementation> aes_cbc_;
|
| + const scoped_ptr<AlgorithmImplementation> aes_ctr_;
|
| + const scoped_ptr<AlgorithmImplementation> aes_kw_;
|
| + const scoped_ptr<AlgorithmImplementation> hmac_;
|
| + const scoped_ptr<AlgorithmImplementation> rsa_ssa_;
|
| + const scoped_ptr<AlgorithmImplementation> rsa_oaep_;
|
| };
|
|
|
| } // namespace
|
|
|