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

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: 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
Index: Source/modules/crypto/SubtleCrypto.h
diff --git a/Source/modules/crypto/SubtleCrypto.h b/Source/modules/crypto/SubtleCrypto.h
index a7550052758fb678221f9c7be4f2209562325cdc..3fde3a0db2cbd584fb5c651652fa5fb89f26aee1 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -31,21 +31,32 @@
#include "bindings/v8/ScriptWrappable.h"
#include "wtf/Forward.h"
+#include "wtf/HashMap.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
+#include "wtf/text/StringHash.h"
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& algorithm, ExceptionCode&);
+ PassRefPtr<CryptoOperation> decrypt(const Dictionary& algorithm, ExceptionCode&);
+ PassRefPtr<CryptoOperation> sign(const Dictionary& algorithm, ExceptionCode&);
+ PassRefPtr<CryptoOperation> verify(const Dictionary& algorithm, ExceptionCode&);
+ PassRefPtr<CryptoOperation> digest(const Dictionary& algorithm, ExceptionCode&);
+
private:
SubtleCrypto();
};
-}
+} // namespace WebCore
#endif

Powered by Google App Engine
This is Rietveld 408576698