Index: content/child/webcrypto/platform_crypto.h |
diff --git a/content/child/webcrypto/platform_crypto.h b/content/child/webcrypto/platform_crypto.h |
index dac3aba38305f475e9fa52aea5870a1fd84ef480..e3329206d9ecfa6b94ec3e48a4cf085c7e914e29 100644 |
--- a/content/child/webcrypto/platform_crypto.h |
+++ b/content/child/webcrypto/platform_crypto.h |
@@ -8,6 +8,7 @@ |
#include <vector> |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "base/memory/scoped_ptr.h" |
#include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
#include "third_party/WebKit/public/platform/WebCrypto.h" |
#include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
@@ -93,6 +94,11 @@ Status DigestSha(blink::WebCryptoAlgorithmId algorithm, |
blink::WebArrayBuffer* buffer); |
// Preconditions: |
+// * |algorithm| is a SHA function. |
+scoped_ptr<blink::WebCryptoDigestor> CreateDigestor( |
+ blink::WebCryptoAlgorithmId algorithm); |
+ |
+// Preconditions: |
// * |key| is non-null. |
// * |hash| is a digest algorithm. |
Status SignRsaSsaPkcs1v1_5(PrivateKey* key, |