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

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: 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
Index: Source/modules/crypto/Algorithm.cpp
diff --git a/Source/modules/crypto/WorkerCrypto.cpp b/Source/modules/crypto/Algorithm.cpp
similarity index 87%
copy from Source/modules/crypto/WorkerCrypto.cpp
copy to Source/modules/crypto/Algorithm.cpp
index d77d0978de73288917dc7bb1fd259245715e5ff4..9d52a0ae4f2d160bcd4b3a0169cbc2534a93fa09 100644
--- a/Source/modules/crypto/WorkerCrypto.cpp
+++ b/Source/modules/crypto/Algorithm.cpp
@@ -29,13 +29,19 @@
*/
#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);
}
+String Algorithm::name() const
abarth-chromium 2013/07/02 06:46:36 This should return a const String&
eroman 2013/07/02 08:12:27 Done (however this did mean adding a new field, si
+{
+ return m_algorithm.algorithmName();
}
+
+} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698