Commit cd142598 authored by eroman's avatar eroman Committed by Commit bot

Mark some member variables as "const".

Review URL: https://codereview.chromium.org/506143003

Cr-Commit-Position: refs/heads/master@{#292196}
parent 405253b7
...@@ -15,6 +15,7 @@ namespace webcrypto { ...@@ -15,6 +15,7 @@ namespace webcrypto {
namespace { namespace {
// This class is used as a singleton. All methods must be threadsafe.
class AlgorithmRegistry { class AlgorithmRegistry {
public: public:
AlgorithmRegistry() AlgorithmRegistry()
...@@ -57,14 +58,14 @@ class AlgorithmRegistry { ...@@ -57,14 +58,14 @@ class AlgorithmRegistry {
} }
private: private:
scoped_ptr<AlgorithmImplementation> sha_; const scoped_ptr<AlgorithmImplementation> sha_;
scoped_ptr<AlgorithmImplementation> aes_gcm_; const scoped_ptr<AlgorithmImplementation> aes_gcm_;
scoped_ptr<AlgorithmImplementation> aes_cbc_; const scoped_ptr<AlgorithmImplementation> aes_cbc_;
scoped_ptr<AlgorithmImplementation> aes_ctr_; const scoped_ptr<AlgorithmImplementation> aes_ctr_;
scoped_ptr<AlgorithmImplementation> aes_kw_; const scoped_ptr<AlgorithmImplementation> aes_kw_;
scoped_ptr<AlgorithmImplementation> hmac_; const scoped_ptr<AlgorithmImplementation> hmac_;
scoped_ptr<AlgorithmImplementation> rsa_ssa_; const scoped_ptr<AlgorithmImplementation> rsa_ssa_;
scoped_ptr<AlgorithmImplementation> rsa_oaep_; const scoped_ptr<AlgorithmImplementation> rsa_oaep_;
}; };
} // namespace } // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment