diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Crypto/Crypto.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Crypto/Crypto.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Crypto/Crypto.h b/Userland/Libraries/LibWeb/Crypto/Crypto.h index d469b7a48f..172e7de4e8 100644 --- a/Userland/Libraries/LibWeb/Crypto/Crypto.h +++ b/Userland/Libraries/LibWeb/Crypto/Crypto.h @@ -8,6 +8,7 @@ #include <LibJS/Runtime/Value.h> #include <LibWeb/Bindings/Wrappable.h> +#include <LibWeb/Crypto/SubtleCrypto.h> #include <LibWeb/DOM/ExceptionOr.h> namespace Web::Crypto { @@ -23,10 +24,14 @@ public: return adopt_ref(*new Crypto()); } + NonnullRefPtr<SubtleCrypto> subtle() const { return m_subtle; } + DOM::ExceptionOr<JS::Value> get_random_values(JS::Value array) const; private: - Crypto() = default; + Crypto(); + + NonnullRefPtr<SubtleCrypto> m_subtle; }; } |