process_util.h 500 B

12345678910111213141516171819202122
  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. #include <string_view>
  8. namespace electron {
  9. std::string GetProcessType();
  10. bool IsBrowserProcess();
  11. bool IsRendererProcess();
  12. bool IsUtilityProcess();
  13. bool IsZygoteProcess();
  14. } // namespace electron
  15. #endif // ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_