2020-06-22 21:35:22 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-06-22 21:35:22 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/HashMap.h>
|
|
|
|
|
#include <ImageDecoder/Forward.h>
|
2020-09-12 11:44:00 +02:00
|
|
|
#include <ImageDecoder/ImageDecoderClientEndpoint.h>
|
2020-06-22 21:35:22 +02:00
|
|
|
#include <ImageDecoder/ImageDecoderServerEndpoint.h>
|
|
|
|
|
#include <LibIPC/ClientConnection.h>
|
|
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace ImageDecoder {
|
|
|
|
|
|
|
|
|
|
class ClientConnection final
|
2021-05-03 13:33:59 +02:00
|
|
|
: public IPC::ClientConnection<ImageDecoderClientEndpoint, ImageDecoderServerEndpoint> {
|
2020-06-22 21:35:22 +02:00
|
|
|
C_OBJECT(ClientConnection);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
~ClientConnection() override;
|
|
|
|
|
|
|
|
|
|
virtual void die() override;
|
|
|
|
|
|
|
|
|
|
private:
|
2022-01-14 13:12:49 +00:00
|
|
|
explicit ClientConnection(NonnullOwnPtr<Core::Stream::LocalSocket>);
|
2021-10-31 23:38:04 +01:00
|
|
|
|
2021-05-02 19:54:34 +02:00
|
|
|
virtual Messages::ImageDecoderServer::DecodeImageResponse decode_image(Core::AnonymousBuffer const&) override;
|
2020-06-22 21:35:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|