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:
|
2020-07-06 13:23:39 +02:00
|
|
|
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
|
2020-06-22 21:35:22 +02:00
|
|
|
~ClientConnection() override;
|
|
|
|
|
|
|
|
|
|
virtual void die() override;
|
|
|
|
|
|
|
|
|
|
private:
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|