process_util.h 477 B

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