diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h new file mode 100644 index 0000000000..7d3b0d7d31 --- /dev/null +++ b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2021, Linus Groh <linusg@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibWeb/Bindings/Wrappable.h> + +namespace Web::Crypto { + +class SubtleCrypto + : public Bindings::Wrappable + , public RefCounted<SubtleCrypto> { +public: + using WrapperType = Bindings::SubtleCryptoWrapper; + + static NonnullRefPtr<SubtleCrypto> create() + { + return adopt_ref(*new SubtleCrypto()); + } + +private: + SubtleCrypto() = default; +}; + +} + +namespace Web::Bindings { + +SubtleCryptoWrapper* wrap(JS::GlobalObject&, Crypto::SubtleCrypto&); + +} |