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>
|
|
|
|
|
2021-07-02 00:51:37 +00:00
|
|
|
namespace node {
|
|
|
|
class Environment;
|
|
|
|
}
|
2020-02-03 22:01:10 +00:00
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
|
|
|
void EmitWarning(node::Environment* env,
|
|
|
|
const std::string& warning_msg,
|
|
|
|
const std::string& warning_type);
|
|
|
|
|
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_
|