FileRequest.cpp 433 B

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