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