| Index: public/platform/WebCryptoAlgorithm.h
|
| diff --git a/public/platform/WebCryptoAlgorithm.h b/public/platform/WebCryptoAlgorithm.h
|
| index 9d89e9accf04ea391059d9817f45dc70225f9d26..06d112aec94e88af7860203560401cb3e241e528 100644
|
| --- a/public/platform/WebCryptoAlgorithm.h
|
| +++ b/public/platform/WebCryptoAlgorithm.h
|
| @@ -85,6 +85,9 @@ class WebCryptoAlgorithmPrivate;
|
| // * Immutable
|
| // * Threadsafe
|
| // * Copiable (cheaply)
|
| +//
|
| +// If WebCryptoAlgorithm "isNull()" then it is invalid to call any of the other
|
| +// methods on it (other than destruction, assignment, or isNull()).
|
| class WebCryptoAlgorithm {
|
| public:
|
| #if BLINK_IMPLEMENTATION
|
| @@ -92,6 +95,7 @@ public:
|
| WebCryptoAlgorithm(WebCryptoAlgorithmId, PassOwnPtr<WebCryptoAlgorithmParams>);
|
| #endif
|
|
|
| + BLINK_EXPORT static WebCryptoAlgorithm createNull();
|
| BLINK_EXPORT static WebCryptoAlgorithm adoptParamsAndCreate(WebCryptoAlgorithmId, WebCryptoAlgorithmParams*);
|
|
|
| ~WebCryptoAlgorithm() { reset(); }
|
| @@ -103,6 +107,8 @@ public:
|
| return *this;
|
| }
|
|
|
| + BLINK_EXPORT bool isNull() const;
|
| +
|
| BLINK_EXPORT WebCryptoAlgorithmId id() const;
|
|
|
| BLINK_EXPORT WebCryptoAlgorithmParamsType paramsType() const;
|
|
|