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

Unified Diff: public/platform/WebCryptoAlgorithm.h

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
Index: public/platform/WebCryptoAlgorithm.h
diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h
index b1227328af7bebfd1fae24dc06fc25ec2c357b0b..5ae856a805ae3f576c5c58820dadd7e1cbdd6890 100644
--- a/public/platform/WebCryptoAlgorithm.h
+++ b/public/platform/WebCryptoAlgorithm.h
@@ -75,7 +75,12 @@ class WebCryptoAlgorithm {
public:
#if WEBKIT_IMPLEMENTATION
WebCryptoAlgorithm() { }
- WebCryptoAlgorithm(WebCryptoAlgorithmId, const char*, PassOwnPtr<WebCryptoAlgorithmParams>);
+ WebCryptoAlgorithm(WebCryptoAlgorithmId, const char* name, PassOwnPtr<WebCryptoAlgorithmParams>);
+#else
+ WebCryptoAlgorithm(WebCryptoAlgorithmId id, const char* name, WebCryptoAlgorithmParams* params)
+ {
+ assign(id, name, params);
+ }
abarth-chromium 2013/07/31 00:46:51 It's not at all obvious that this constructor take
eroman 2013/07/31 01:49:26 Good idea. Done
#endif
~WebCryptoAlgorithm() { reset(); }
@@ -100,6 +105,7 @@ public:
private:
WEBKIT_EXPORT void assign(const WebCryptoAlgorithm& other);
+ WEBKIT_EXPORT void assign(WebCryptoAlgorithmId, const char* name, WebCryptoAlgorithmParams*);
WEBKIT_EXPORT void reset();
WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private;

Powered by Google App Engine
This is Rietveld 408576698