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

Unified Diff: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp

Issue 18937003: WebCrypto: [Cleanup] Remove a redundant "algorithm" prefix. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master, just in case Created 7 years, 5 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 | Source/modules/crypto/Algorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
diff --git a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
index 0ca2d40f74416e44425edef012e6487de724817d..685bd3d7c6f1f8c8c1db5c024b01ddde6ee8f529 100644
--- a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
+++ b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
@@ -39,31 +39,31 @@ namespace WebKit {
class WebCryptoAlgorithmPrivate : public ThreadSafeRefCounted<WebCryptoAlgorithmPrivate> {
public:
- WebCryptoAlgorithmPrivate(WebCryptoAlgorithmId algorithmId, const char* algorithmName, PassOwnPtr<WebCryptoAlgorithmParams> params)
- : algorithmId(algorithmId)
- , algorithmName(algorithmName)
+ WebCryptoAlgorithmPrivate(WebCryptoAlgorithmId id, const char* name, PassOwnPtr<WebCryptoAlgorithmParams> params)
+ : id(id)
+ , name(name)
, params(params)
{
}
- WebCryptoAlgorithmId algorithmId;
- const char* const algorithmName;
+ WebCryptoAlgorithmId id;
+ const char* const name;
OwnPtr<WebCryptoAlgorithmParams> params;
};
-WebCryptoAlgorithm::WebCryptoAlgorithm(WebCryptoAlgorithmId algorithmId, const char* algorithmName, PassOwnPtr<WebCryptoAlgorithmParams> params)
- : m_private(adoptRef(new WebCryptoAlgorithmPrivate(algorithmId, algorithmName, params)))
+WebCryptoAlgorithm::WebCryptoAlgorithm(WebCryptoAlgorithmId id, const char* name, PassOwnPtr<WebCryptoAlgorithmParams> params)
+ : m_private(adoptRef(new WebCryptoAlgorithmPrivate(id, name, params)))
{
}
-WebCryptoAlgorithmId WebCryptoAlgorithm::algorithmId() const
+WebCryptoAlgorithmId WebCryptoAlgorithm::id() const
{
- return m_private->algorithmId;
+ return m_private->id;
}
-const char* WebCryptoAlgorithm::algorithmName() const
+const char* WebCryptoAlgorithm::name() const
{
- return m_private->algorithmName;
+ return m_private->name;
}
WebCryptoAlgorithmParamsType WebCryptoAlgorithm::paramsType() const
« no previous file with comments | « no previous file | Source/modules/crypto/Algorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698