process_util.h 578 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2019 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
  5. #define ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
  6. #include <string>
  7. namespace node {
  8. class Environment;
  9. }
  10. namespace electron {
  11. void EmitWarning(node::Environment* env,
  12. const std::string& warning_msg,
  13. const std::string& warning_type);
  14. bool IsBrowserProcess();
  15. bool IsRendererProcess();
  16. } // namespace electron
  17. #endif // ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_