mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWebView+UI: Rename ChromeProcess to BrowserProcess
This commit is contained in:
parent
e00c0c176e
commit
47d6747945
Notes:
github-actions[bot]
2025-03-15 23:58:52 +00:00
Author: https://github.com/trflynn89
Commit: 47d6747945
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3959
Reviewed-by: https://github.com/awesomekling ✅
5 changed files with 23 additions and 23 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <LibCore/System.h>
|
||||
#include <LibIPC/ConnectionToServer.h>
|
||||
#include <LibWebView/Application.h>
|
||||
#include <LibWebView/ChromeProcess.h>
|
||||
#include <LibWebView/BrowserProcess.h>
|
||||
#include <LibWebView/URL.h>
|
||||
|
||||
namespace WebView {
|
||||
|
@ -25,7 +25,7 @@ private:
|
|||
explicit UIProcessClient(IPC::Transport);
|
||||
};
|
||||
|
||||
ErrorOr<ChromeProcess::ProcessDisposition> ChromeProcess::connect(Vector<ByteString> const& raw_urls, NewWindow new_window)
|
||||
ErrorOr<BrowserProcess::ProcessDisposition> BrowserProcess::connect(Vector<ByteString> const& raw_urls, NewWindow new_window)
|
||||
{
|
||||
static constexpr auto process_name = "Ladybird"sv;
|
||||
|
||||
|
@ -45,7 +45,7 @@ ErrorOr<ChromeProcess::ProcessDisposition> ChromeProcess::connect(Vector<ByteStr
|
|||
return ProcessDisposition::ContinueMainProcess;
|
||||
}
|
||||
|
||||
ErrorOr<void> ChromeProcess::connect_as_client(ByteString const& socket_path, Vector<ByteString> const& raw_urls, NewWindow new_window)
|
||||
ErrorOr<void> BrowserProcess::connect_as_client(ByteString const& socket_path, Vector<ByteString> const& raw_urls, NewWindow new_window)
|
||||
{
|
||||
auto socket = TRY(Core::LocalSocket::connect(socket_path));
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
|
@ -62,7 +62,7 @@ ErrorOr<void> ChromeProcess::connect_as_client(ByteString const& socket_path, Ve
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> ChromeProcess::connect_as_server(ByteString const& socket_path)
|
||||
ErrorOr<void> BrowserProcess::connect_as_server(ByteString const& socket_path)
|
||||
{
|
||||
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Need to handle other IPC transports here");
|
||||
|
||||
|
@ -88,7 +88,7 @@ ErrorOr<void> ChromeProcess::connect_as_server(ByteString const& socket_path)
|
|||
return {};
|
||||
}
|
||||
|
||||
ChromeProcess::~ChromeProcess()
|
||||
BrowserProcess::~BrowserProcess()
|
||||
{
|
||||
if (m_pid_file) {
|
||||
MUST(m_pid_file->truncate(0));
|
|
@ -38,9 +38,9 @@ private:
|
|||
virtual void create_new_window(Vector<ByteString> urls) override;
|
||||
};
|
||||
|
||||
class ChromeProcess {
|
||||
AK_MAKE_NONCOPYABLE(ChromeProcess);
|
||||
AK_MAKE_DEFAULT_MOVABLE(ChromeProcess);
|
||||
class BrowserProcess {
|
||||
AK_MAKE_NONCOPYABLE(BrowserProcess);
|
||||
AK_MAKE_DEFAULT_MOVABLE(BrowserProcess);
|
||||
|
||||
public:
|
||||
enum class ProcessDisposition : u8 {
|
||||
|
@ -48,8 +48,8 @@ public:
|
|||
ExitProcess,
|
||||
};
|
||||
|
||||
ChromeProcess() = default;
|
||||
~ChromeProcess();
|
||||
BrowserProcess() = default;
|
||||
~BrowserProcess();
|
||||
|
||||
ErrorOr<ProcessDisposition> connect(Vector<ByteString> const& raw_urls, NewWindow new_window);
|
||||
|
|
@ -3,7 +3,7 @@ include(fontconfig)
|
|||
set(SOURCES
|
||||
Application.cpp
|
||||
Attribute.cpp
|
||||
ChromeProcess.cpp
|
||||
BrowserProcess.cpp
|
||||
ConsoleOutput.cpp
|
||||
CookieJar.cpp
|
||||
Database.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue