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

Unified Diff: trunk/src/content/child/webcrypto/webcrypto_impl.h

Issue 252213003: Revert 266798 "[webcrypto] Make operations run on a background t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 | « trunk/src/content/child/webcrypto/status.h ('k') | trunk/src/content/child/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/child/webcrypto/webcrypto_impl.h
===================================================================
--- trunk/src/content/child/webcrypto/webcrypto_impl.h (revision 266902)
+++ trunk/src/content/child/webcrypto/webcrypto_impl.h (working copy)
@@ -13,7 +13,7 @@
namespace content {
-// Wrapper around the Blink WebCrypto asynchronous interface, which forwards to
+// Wrapper around the blink WebCrypto asynchronous interface, which forwards to
// the synchronous platfrom (NSS or OpenSSL) implementation.
//
// TODO(eroman): Post the synchronous work to a background thread.
@@ -77,7 +77,12 @@
bool extractable,
blink::WebCryptoKeyUsageMask usages,
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);
// This method returns a digestor object that can be used to synchronously
// compute a digest one chunk at a time. Thus, the consume does not need to
// hold onto a large buffer with all the data to digest. Chunks can be given
« no previous file with comments | « trunk/src/content/child/webcrypto/status.h ('k') | trunk/src/content/child/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698