diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-08 23:05:44 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:50:07 +0000 |
commit | a96339b72b3b417ffaa4fbb4e7575149f749acaa (patch) | |
tree | 10cd665265e85a750d6a84713bedf73acf359069 /Userland/Libraries/LibWeb/WebDriver | |
parent | d43a7eae545cd699f301471bd0f82399174339c1 (diff) | |
download | serenity-a96339b72b3b417ffaa4fbb4e7575149f749acaa.zip |
LibCore: Move Stream-based sockets into the `Core` namespace
Diffstat (limited to 'Userland/Libraries/LibWeb/WebDriver')
-rw-r--r-- | Userland/Libraries/LibWeb/WebDriver/Client.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/WebDriver/Client.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/WebDriver/Client.cpp b/Userland/Libraries/LibWeb/WebDriver/Client.cpp index a2d85fefba..87ed00de11 100644 --- a/Userland/Libraries/LibWeb/WebDriver/Client.cpp +++ b/Userland/Libraries/LibWeb/WebDriver/Client.cpp @@ -170,7 +170,7 @@ static JsonValue make_success_response(JsonValue value) return result; } -Client::Client(NonnullOwnPtr<Core::Stream::BufferedTCPSocket> socket, Core::Object* parent) +Client::Client(NonnullOwnPtr<Core::BufferedTCPSocket> socket, Core::Object* parent) : Core::Object(parent) , m_socket(move(socket)) { diff --git a/Userland/Libraries/LibWeb/WebDriver/Client.h b/Userland/Libraries/LibWeb/WebDriver/Client.h index 2e5d8c8e33..05757178fd 100644 --- a/Userland/Libraries/LibWeb/WebDriver/Client.h +++ b/Userland/Libraries/LibWeb/WebDriver/Client.h @@ -13,6 +13,7 @@ #include <AK/NonnullOwnPtrVector.h> #include <AK/Variant.h> #include <LibCore/Object.h> +#include <LibCore/Socket.h> #include <LibCore/Stream.h> #include <LibHTTP/Forward.h> #include <LibHTTP/HttpRequest.h> @@ -103,7 +104,7 @@ public: virtual Response print_page(Parameters parameters, JsonValue payload) = 0; protected: - Client(NonnullOwnPtr<Core::Stream::BufferedTCPSocket>, Core::Object* parent); + Client(NonnullOwnPtr<Core::BufferedTCPSocket>, Core::Object* parent); private: using WrappedError = Variant<AK::Error, WebDriver::Error>; @@ -116,7 +117,7 @@ private: ErrorOr<void, WrappedError> send_error_response(Error const& error); void log_response(unsigned code); - NonnullOwnPtr<Core::Stream::BufferedTCPSocket> m_socket; + NonnullOwnPtr<Core::BufferedTCPSocket> m_socket; Optional<HTTP::HttpRequest> m_request; }; |