mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:02:45 +00:00 
			
		
		
		
	 662711fa26
			
		
	
	
		662711fa26
		
	
	
	
	
		
			
			To achieve this goal: - The Browser unveils "/tmp/portal/filesystemaccess" - Pass the page through LoadRequest => ResourceLoader - ResourceLoader requests a file to the FileSystemAccessServer via IPC - OutOfProcessWebView handles it and sends a file descriptor back to the Page.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			283 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			283 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Lucas Chollet <lucas.chollet@free.fr>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include "FileRequest.h"
 | |
| 
 | |
| namespace Web {
 | |
| 
 | |
| FileRequest::FileRequest(String path)
 | |
|     : m_path(move(path))
 | |
| {
 | |
| }
 | |
| 
 | |
| String FileRequest::path() const
 | |
| {
 | |
|     return m_path;
 | |
| }
 | |
| 
 | |
| }
 |