2022-09-19 09:16:42 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Dex♪ <dexes.ttp@gmail.com>
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/WebSockets/WebSocket.h>
|
|
|
|
#include <LibWebSocket/ConnectionInfo.h>
|
|
|
|
#include <LibWebSocket/Message.h>
|
|
|
|
#include <LibWebSocket/WebSocket.h>
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Ladybird {
|
|
|
|
|
2023-08-02 18:01:17 +00:00
|
|
|
class WebSocketClientManagerQt : public Web::WebSockets::WebSocketClientManager {
|
2022-09-19 09:16:42 +00:00
|
|
|
public:
|
2023-08-02 18:01:17 +00:00
|
|
|
static NonnullRefPtr<WebSocketClientManagerQt> create();
|
2022-09-19 09:16:42 +00:00
|
|
|
|
2023-08-02 18:01:17 +00:00
|
|
|
virtual ~WebSocketClientManagerQt() override;
|
2022-12-31 10:37:10 +00:00
|
|
|
virtual RefPtr<Web::WebSockets::WebSocketClientSocket> connect(AK::URL const&, DeprecatedString const& origin, Vector<DeprecatedString> const& protocols) override;
|
2022-09-19 09:16:42 +00:00
|
|
|
|
|
|
|
private:
|
2023-08-02 18:01:17 +00:00
|
|
|
WebSocketClientManagerQt();
|
2022-09-19 09:16:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|