/* * Copyright (c) 2022, Dex♪ * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace ImageDecoderClient { class Client; } namespace WebView { class ImageDecoderClientAdapter : public Web::ImageDecoding::Decoder { public: static NonnullRefPtr create(); virtual ~ImageDecoderClientAdapter() override = default; virtual Optional decode_image(ReadonlyBytes) override; private: explicit ImageDecoderClientAdapter() = default; RefPtr m_client; }; }