Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: content/child/webcrypto/algorithm_registry.cc

Issue 506143003: Mark some member variables as "const". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aesctr
Patch Set: should -> must Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698