/* * Copyright (c) 2022, Dex♪ * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace ImageDecoderClient { class Client; } namespace WebContent { class ImageCodecPluginSerenity final : public Web::Platform::ImageCodecPlugin { public: ImageCodecPluginSerenity(); virtual ~ImageCodecPluginSerenity() override; virtual NonnullRefPtr> decode_image(ReadonlyBytes, ESCAPING Function(Web::Platform::DecodedImage&)> on_resolved, ESCAPING Function on_rejected) override; private: RefPtr m_client; }; }