Chromium Code Reviews| 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; |