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

Unified Diff: Source/modules/crypto/Algorithm.cpp

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename verify --> verifySignature (because "verify" is a macro on Mac) Created 7 years, 6 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 | « Source/modules/crypto/Algorithm.h ('k') | Source/modules/crypto/Algorithm.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Algorithm.cpp
diff --git a/Source/modules/crypto/WorkerCrypto.cpp b/Source/modules/crypto/Algorithm.cpp
similarity index 85%
copy from Source/modules/crypto/WorkerCrypto.cpp
copy to Source/modules/crypto/Algorithm.cpp
index d77d0978de73288917dc7bb1fd259245715e5ff4..c6a9b8e3b5296b68683bbf241b1745938bba2630 100644
--- a/Source/modules/crypto/WorkerCrypto.cpp
+++ b/Source/modules/crypto/Algorithm.cpp
@@ -29,13 +29,21 @@
*/
#include "config.h"
-#include "modules/crypto/WorkerCrypto.h"
+#include "modules/crypto/Algorithm.h"
namespace WebCore {
-WorkerCrypto::WorkerCrypto()
+Algorithm::Algorithm(const WebKit::WebCryptoAlgorithm& algorithm)
+ : m_algorithm(algorithm)
{
ScriptWrappable::init(this);
}
+const String& Algorithm::name()
+{
+ if (m_name.isNull())
+ m_name = m_algorithm.algorithmName();
+ return m_name;
}
+
+} // namespace WebCore
« no previous file with comments | « Source/modules/crypto/Algorithm.h ('k') | Source/modules/crypto/Algorithm.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698