1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibHTML: Use LibProtocol for HTTP requests :^)

This moves all of the browser networking to ProtocolServer.
This commit is contained in:
Andreas Kling 2019-11-24 14:24:09 +01:00
parent 653e61d9cf
commit 0d2659c0a2
4 changed files with 26 additions and 22 deletions

View file

@ -4,6 +4,10 @@
#include <AK/URL.h>
#include <LibCore/CObject.h>
namespace LibProtocol {
class Client;
}
class ResourceLoader : public CObject {
C_OBJECT(ResourceLoader)
public:
@ -16,7 +20,10 @@ public:
int pending_loads() const { return m_pending_loads; }
private:
ResourceLoader() {}
ResourceLoader();
int m_pending_loads { 0 };
LibProtocol::Client& protocol_client() { return *m_protocol_client; }
RefPtr<LibProtocol::Client> m_protocol_client;
};