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

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

Issue 21185005: Expose a constructor for WebCryptoAlgorithm. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | public/platform/WebCryptoAlgorithm.h » ('j') | public/platform/WebCryptoAlgorithm.h » ('J')
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 309ba566974d5d3f484a09f417a2db29114e66ec..909564d3c2a02ca11b4b020faa136fc1a2f5debf 100644
--- a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
+++ b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
@@ -99,6 +99,12 @@ void WebCryptoAlgorithm::assign(const WebCryptoAlgorithm& other)
m_private = other.m_private;
}
+void WebCryptoAlgorithm::assign(WebCryptoAlgorithmId id, const char* name, WebCryptoAlgorithmParams* params)
+{
+ m_private = adoptRef(new WebCryptoAlgorithmPrivate(id, name, adoptPtr(params)));
+}
+
abarth-chromium 2013/07/31 00:46:51 You've got an extra blank line here.
eroman 2013/07/31 01:49:26 Done.
+
void WebCryptoAlgorithm::reset()
{
m_private.reset();
« no previous file with comments | « no previous file | public/platform/WebCryptoAlgorithm.h » ('j') | public/platform/WebCryptoAlgorithm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698