Index: Source/modules/crypto/NormalizeAlgorithm.h |
diff --git a/Source/modules/crypto/NormalizeAlgorithm.h b/Source/modules/crypto/NormalizeAlgorithm.h |
index ffdbdc193d0430d4abded2505f8f9e06972d88c3..eb48788fe56c5577d23d949807d724216df1400e 100644 |
--- a/Source/modules/crypto/NormalizeAlgorithm.h |
+++ b/Source/modules/crypto/NormalizeAlgorithm.h |
@@ -31,6 +31,7 @@ |
#ifndef NormalizeAlgorithm_h |
#define NormalizeAlgorithm_h |
+#include "public/platform/WebCryptoAlgorithm.h" |
#include "wtf/Assertions.h" |
namespace WebKit { class WebCryptoAlgorithm; } |
@@ -59,6 +60,10 @@ enum AlgorithmOperation { |
// normalization fails then returns false and sets the ExceptionState. |
bool normalizeAlgorithm(const Dictionary&, AlgorithmOperation, WebKit::WebCryptoAlgorithm&, ExceptionState&) WARN_UNUSED_RETURN; |
+// Returns a null-terminated C-string literal. Caller can assume the pointer |
+// will be valid for the program's entire runtime. |
+const char* algorithmIdToName(WebKit::WebCryptoAlgorithmId); |
+ |
} // namespace WebCore |
#endif |