mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:02:43 +00:00 
			
		
		
		
	 16a4949e33
			
		
	
	
		16a4949e33
		
	
	
	
	
		
			
			If WebContent process got disconnected it is only necessary to remove associated window instead of terminating the entire session.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			611 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			611 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibIPC/ConnectionFromClient.h>
 | |
| #include <WebContent/WebDriverClientEndpoint.h>
 | |
| #include <WebContent/WebDriverServerEndpoint.h>
 | |
| 
 | |
| namespace WebDriver {
 | |
| 
 | |
| class Client;
 | |
| 
 | |
| class WebContentConnection
 | |
|     : public IPC::ConnectionFromClient<WebDriverClientEndpoint, WebDriverServerEndpoint> {
 | |
|     C_OBJECT_ABSTRACT(WebContentConnection)
 | |
| public:
 | |
|     WebContentConnection(NonnullOwnPtr<Core::LocalSocket> socket);
 | |
| 
 | |
|     Function<void()> on_close;
 | |
| 
 | |
|     virtual void die() override;
 | |
| };
 | |
| 
 | |
| }
 |