ladybird/Userland/Libraries/LibWeb/Loader/FileRequest.cpp
Lucas CHOLLET 662711fa26 Browser+LibWeb+WebContent: Allow Browser to load local files
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.
2022-06-27 20:22:15 +01:00

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;
}
}