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

Unified Diff: Source/modules/crypto/SubtleCrypto.h

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename verify --> verifySignature (because "verify" is a macro on Mac) Created 7 years, 6 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 | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/SubtleCrypto.h
diff --git a/Source/modules/crypto/SubtleCrypto.h b/Source/modules/crypto/SubtleCrypto.h
index a7550052758fb678221f9c7be4f2209562325cdc..8131e021347773bc39d000016989bca2108b1f8d 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -36,16 +36,26 @@
namespace WebCore {
+class CryptoOperation;
+class Dictionary;
+
typedef int ExceptionCode;
class SubtleCrypto : public ScriptWrappable, public RefCounted<SubtleCrypto> {
public:
static PassRefPtr<SubtleCrypto> create() { return adoptRef(new SubtleCrypto()); }
+ PassRefPtr<CryptoOperation> encrypt(const Dictionary&, ExceptionCode&);
+ PassRefPtr<CryptoOperation> decrypt(const Dictionary&, ExceptionCode&);
+ PassRefPtr<CryptoOperation> sign(const Dictionary&, ExceptionCode&);
+ // Note that this is not named "verify" because when compiling on Mac that expands to a macro and breaks.
+ PassRefPtr<CryptoOperation> verifySignature(const Dictionary&, ExceptionCode&);
+ PassRefPtr<CryptoOperation> digest(const Dictionary&, ExceptionCode&);
+
private:
SubtleCrypto();
};
-}
+} // namespace WebCore
#endif
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698