Process.cpp 470 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2024, Andrew Kaster <akaster@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibCore/Process.h>
  7. #include <LibWebView/Process.h>
  8. namespace WebView {
  9. Process::Process(ProcessType type, RefPtr<IPC::ConnectionBase> connection, Core::Process process)
  10. : m_process(move(process))
  11. , m_type(type)
  12. , m_connection(move(connection))
  13. {
  14. }
  15. Process::~Process()
  16. {
  17. if (m_connection)
  18. m_connection->shutdown();
  19. }
  20. }