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

Unified Diff: Source/modules/crypto/NormalizeAlgorithm.h

Issue 23503016: Cleanup: Remove the WebCryptoAlgorithm::name() attribute. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename get() --> instance() Created 7 years, 4 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 | « Source/modules/crypto/Algorithm.cpp ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/crypto/Algorithm.cpp ('k') | Source/modules/crypto/NormalizeAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698