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

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

Issue 340353006: [webcrypto] Replace KeyAlgorithm interfaces with an Object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master Created 6 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/CryptoKey.cpp
diff --git a/Source/modules/crypto/CryptoKey.cpp b/Source/modules/crypto/CryptoKey.cpp
index b85f9c1ae651aa5500d97b0c1f9a71c4e7c3535b..b531ff808aec689053b35c2f85d6024ade585aa4 100644
--- a/Source/modules/crypto/CryptoKey.cpp
+++ b/Source/modules/crypto/CryptoKey.cpp
@@ -33,9 +33,9 @@
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
-#include "modules/crypto/KeyAlgorithm.h"
#include "platform/CryptoResult.h"
#include "public/platform/WebCryptoAlgorithmParams.h"
+#include "public/platform/WebCryptoKeyAlgorithm.h"
#include "public/platform/WebString.h"
namespace WebCore {
@@ -147,13 +147,6 @@ bool CryptoKey::extractable() const
return m_key.extractable();
}
-KeyAlgorithm* CryptoKey::algorithm()
-{
- if (!m_algorithm)
- m_algorithm = KeyAlgorithm::create(m_key.algorithm());
- return m_algorithm.get();
-}
-
// FIXME: This creates a new javascript array each time. What should happen
// instead is return the same (immutable) array. (Javascript callers can
// distinguish this by doing an == test on the arrays and seeing they are
@@ -222,9 +215,4 @@ bool CryptoKey::parseUsageMask(const Vector<String>& usages, blink::WebCryptoKey
return true;
}
-void CryptoKey::trace(Visitor* visitor)
-{
- visitor->trace(m_algorithm);
-}
-
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698