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

Unified Diff: content/renderer/webcrypto/webcrypto_impl.h

Issue 138343008: Add content implementation of digestSynchcronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes from eroman Created 6 years, 10 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 | « no previous file | content/renderer/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webcrypto/webcrypto_impl.h
diff --git a/content/renderer/webcrypto/webcrypto_impl.h b/content/renderer/webcrypto/webcrypto_impl.h
index fa4a2f4083d228332b6bf3f64dc814a25e78d65b..8f87c90666b62c07a75ddd791d4711aec840243b 100644
--- a/content/renderer/webcrypto/webcrypto_impl.h
+++ b/content/renderer/webcrypto/webcrypto_impl.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "third_party/WebKit/public/platform/WebCrypto.h"
+#include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
namespace content {
@@ -60,6 +61,12 @@ class WebCryptoImpl : public blink::WebCrypto {
const unsigned char* data,
unsigned int data_size,
blink::WebCryptoResult result);
+ // This method synchronously computes a digest for the given data, returning
+ // |true| if successful and |false| otherwise.
+ virtual bool digestSynchronous(const blink::WebCryptoAlgorithmId algorithm_id,
+ const unsigned char* data,
+ unsigned int data_size,
+ blink::WebArrayBuffer& result);
private:
DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
« no previous file with comments | « no previous file | content/renderer/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698