mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
22 lines
421 B
C++
22 lines
421 B
C++
/*
|
|
* Copyright (c) 2022, Lucas Chollet <lucas.chollet@free.fr>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "FileRequest.h"
|
|
|
|
namespace Web {
|
|
|
|
FileRequest::FileRequest(ByteString path, Function<void(ErrorOr<i32>)> on_file_request_finish_callback)
|
|
: on_file_request_finish(move(on_file_request_finish_callback))
|
|
, m_path(move(path))
|
|
{
|
|
}
|
|
|
|
ByteString FileRequest::path() const
|
|
{
|
|
return m_path;
|
|
}
|
|
|
|
}
|