Serenity Operating System
at master 27 lines 488 B view raw
1/* 2 * Copyright (c) 2022, Lucas Chollet <lucas.chollet@free.fr> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <AK/DeprecatedString.h> 10#include <AK/Error.h> 11#include <AK/Function.h> 12 13namespace Web { 14 15class FileRequest { 16public: 17 FileRequest(DeprecatedString path, Function<void(ErrorOr<i32>)> on_file_request_finish); 18 19 DeprecatedString path() const; 20 21 Function<void(ErrorOr<i32>)> on_file_request_finish; 22 23private: 24 DeprecatedString m_path {}; 25}; 26 27}