mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 15:32:51 +00:00
LibWeb+WebContent: Spawn Worker processes from the chrome
Instead of spawning these processes from the WebContent process, we now create them in the Browser chrome. Part 1/N of "all processes are owned by the chrome".
This commit is contained in:
parent
6ea4c248ab
commit
02edd240ae
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/ADKaster
Commit: 02edd240ae
Pull-request: https://github.com/SerenityOS/serenity/pull/22664
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/trflynn89 ✅
26 changed files with 152 additions and 99 deletions
28
Userland/Libraries/LibWebView/SocketPair.h
Normal file
28
Userland/Libraries/LibWebView/SocketPair.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibIPC/File.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
struct SocketPair {
|
||||
IPC::File socket;
|
||||
IPC::File fd_passing_socket;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, WebView::SocketPair const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<WebView::SocketPair> decode(Decoder&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue