summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Loader/FileRequest.h
blob: afa2b70eade0842fe379c4d5a24bda2f8cc8287e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2022, Lucas Chollet <lucas.chollet@free.fr>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/DeprecatedString.h>
#include <AK/Error.h>
#include <AK/Function.h>

namespace Web {

class FileRequest {
public:
    FileRequest(DeprecatedString path, Function<void(ErrorOr<i32>)> on_file_request_finish);

    DeprecatedString path() const;

    Function<void(ErrorOr<i32>)> on_file_request_finish;

private:
    DeprecatedString m_path {};
};

}