2020-02-03 22:01:10 +00: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 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|
2020-02-03 22:01:10 +00:00
|
|
|
|
|
|
|
#include <string>
|
2024-09-16 20:53:04 +00:00
|
|
|
#include <string_view>
|
2020-02-03 22:01:10 +00:00
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
2023-06-06 08:19:13 +00:00
|
|
|
std::string GetProcessType();
|
|
|
|
|
2023-04-20 00:27:02 +00:00
|
|
|
bool IsBrowserProcess();
|
|
|
|
bool IsRendererProcess();
|
2023-06-06 08:19:13 +00:00
|
|
|
bool IsUtilityProcess();
|
|
|
|
bool IsZygoteProcess();
|
2023-04-20 00:27:02 +00:00
|
|
|
|
2020-02-03 22:01:10 +00:00
|
|
|
} // namespace electron
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|