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

Unified Diff: public/platform/WebCrypto.h

Issue 243383003: Remove the WebCrypto::digestSynchronous() method (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebCrypto.h
diff --git a/public/platform/WebCrypto.h b/public/platform/WebCrypto.h
index 0ce81850a85abbeab439622aa50206734967319d..4cb2b5111be117e14d6e2ec5e7dfe8b3cf012332 100644
--- a/public/platform/WebCrypto.h
+++ b/public/platform/WebCrypto.h
@@ -199,14 +199,11 @@ public:
// This is the exception to the "Completing the request" guarantees
// outlined above. This is useful for Blink internal crypto and is not part
- // of the WebCrypto standard. digestSynchronous returns |true| if the
- // digest was successfully computed and put into result. Otherwise, returns
- // |false|. It must compute the digest or fail synchronously.
- // createDigestor must provide the result via the WebCryptoDigestor object
- // synchronously. createDigestor may return 0 if it fails to create a
- // WebCryptoDigestor. If it succeeds, the WebCryptoDigestor returned by
- // createDigestor must be freed by the caller.
- virtual bool digestSynchronous(const WebCryptoAlgorithmId algorithmId, const unsigned char* data, unsigned dataSize, WebArrayBuffer& result) { return false; }
+ // of the WebCrypto standard. createDigestor must provide the result via
+ // the WebCryptoDigestor object synchronously. createDigestor may return 0
+ // if it fails to create a WebCryptoDigestor. If it succeeds, the
+ // WebCryptoDigestor returned by createDigestor must be freed by the
+ // caller.
virtual WebCryptoDigestor* createDigestor(WebCryptoAlgorithmId algorithmId) { return 0; }
// -----------------------
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698