| 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
|
|
|