2020-02-03 14:01:10 -08:00
|
|
|
// Copyright (c) 2019 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|
2020-02-03 14:01:10 -08:00
|
|
|
|
|
|
|
#include <string>
|
2024-09-16 15:53:04 -05:00
|
|
|
#include <string_view>
|
2020-02-03 14:01:10 -08:00
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
2023-06-06 10:19:13 +02:00
|
|
|
std::string GetProcessType();
|
|
|
|
|
2023-04-20 09:27:02 +09:00
|
|
|
bool IsBrowserProcess();
|
|
|
|
bool IsRendererProcess();
|
2023-06-06 10:19:13 +02:00
|
|
|
bool IsUtilityProcess();
|
|
|
|
bool IsZygoteProcess();
|
2023-04-20 09:27:02 +09:00
|
|
|
|
2020-02-03 14:01:10 -08:00
|
|
|
} // namespace electron
|
|
|
|
|
2021-11-22 08:34:31 +01:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|