Serenity Operating System
1/*
2 * Copyright (c) 2022, Lucas Chollet <lucas.chollet@free.fr>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include "FileRequest.h"
8
9namespace Web {
10
11FileRequest::FileRequest(DeprecatedString path, Function<void(ErrorOr<i32>)> on_file_request_finish_callback)
12 : on_file_request_finish(move(on_file_request_finish_callback))
13 , m_path(move(path))
14{
15}
16
17DeprecatedString FileRequest::path() const
18{
19 return m_path;
20}
21
22}