summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorDexesTTP <dexes.ttp@gmail.com>2022-04-30 12:06:30 +0200
committerAndreas Kling <kling@serenityos.org>2022-05-15 12:17:36 +0200
commitc00ae53b664a3a403bfb7036d6aa5fba19e790eb (patch)
tree107b2ebf31f8e6c5e33ed9937b0064358fbdbc9f /Userland/Services
parent2a359695c6d2b96080c64bdbcf8cd553bcab71d5 (diff)
downloadserenity-c00ae53b664a3a403bfb7036d6aa5fba19e790eb.zip
LibWeb: Abstract the LibProtocol ResourceLoader connection
This is the final component that required LibProtocol as a dependency of LibWeb. With this, we can now remove the dependency, and LibWeb no longer requires IPC to work :^)
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WebContent/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/main.cpp b/Userland/Services/WebContent/main.cpp
index b7bfccf6e4..290a34b9a2 100644
--- a/Userland/Services/WebContent/main.cpp
+++ b/Userland/Services/WebContent/main.cpp
@@ -10,8 +10,10 @@
#include <LibIPC/SingleServer.h>
#include <LibMain/Main.h>
#include <LibWeb/ImageDecoding.h>
+#include <LibWeb/Loader/ResourceLoader.h>
#include <LibWeb/WebSockets/WebSocket.h>
#include <LibWebView/ImageDecoderClientAdapter.h>
+#include <LibWebView/RequestServerAdapter.h>
#include <LibWebView/WebSocketClientAdapter.h>
#include <WebContent/ConnectionFromClient.h>
@@ -28,6 +30,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
Web::ImageDecoding::Decoder::initialize(WebView::ImageDecoderClientAdapter::create());
Web::WebSockets::WebSocketClientManager::initialize(TRY(WebView::WebSocketClientManagerAdapter::try_create()));
+ Web::ResourceLoader::initialize(TRY(WebView::RequestServerAdapter::try_create()));
auto client = TRY(IPC::take_over_accepted_client_from_system_server<WebContent::ConnectionFromClient>());
return event_loop.exec();