mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:52:45 +00:00 
			
		
		
		
	 02edd240ae
			
		
	
	
		02edd240ae
		
	
	
	
	
		
			
			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".
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			407 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			407 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * 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&);
 | |
| 
 | |
| }
 |