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

Unified Diff: public/platform/WebCrypto.h

Issue 21016005: WebCrypto: Add more operations to the platform API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add notImplemented() Created 7 years, 5 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 | « Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp ('k') | 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 f11bcbd940da6cd6377a4a0c8fb9a0f49518814f..c6be198464180c75f48bae9870d395c760cbfaa0 100644
--- a/public/platform/WebCrypto.h
+++ b/public/platform/WebCrypto.h
@@ -46,7 +46,7 @@ class WebCryptoOperationResult;
class WebCrypto {
public:
// FIXME: Deprecated, delete once chromium side is updated.
- virtual WebCryptoOperation* digest(const WebCryptoAlgorithm&) { return 0; }
+ virtual WebCryptoOperation* digest(const WebCryptoAlgorithm&) { WEBKIT_ASSERT_NOT_REACHED(); return 0; }
// The following methods begin an asynchronous multi-part cryptographic
// operation.
@@ -86,7 +86,10 @@ public:
//
// Once the cryptoOperation is no longer "in progress" the embedder is
// responsible for freeing the cryptoOperation.
- virtual void digest(const WebCryptoAlgorithm&, WebCryptoOperationResult&) { }
+ virtual void encrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void decrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void sign(const WebCryptoAlgorithm&, const WebCryptoKey&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
+ virtual void digest(const WebCryptoAlgorithm&, WebCryptoOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
// The following methods begin an asynchronous single-part key operation.
//
@@ -118,7 +121,7 @@ public:
//
// Once the keyOperation is no longer "in progress" the embedder is
// responsible for freeing the cryptoOperation.
- virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, size_t keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageMask, WebCryptoKeyOperationResult&) { }
+ virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, size_t keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageMask, WebCryptoKeyOperationResult&) { WEBKIT_ASSERT_NOT_REACHED(); }
protected:
virtual ~WebCrypto() { }
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698