crash_keys.h 733 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2020 Slack Technologies, 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_CRASH_KEYS_H_
  5. #define ELECTRON_SHELL_COMMON_CRASH_KEYS_H_
  6. #include <map>
  7. #include <string>
  8. namespace base {
  9. class CommandLine;
  10. }
  11. namespace electron {
  12. namespace crash_keys {
  13. void SetCrashKey(const std::string& key, const std::string& value);
  14. void ClearCrashKey(const std::string& key);
  15. void GetCrashKeys(std::map<std::string, std::string>* keys);
  16. void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
  17. void SetPlatformCrashKey();
  18. } // namespace crash_keys
  19. } // namespace electron
  20. #endif // ELECTRON_SHELL_COMMON_CRASH_KEYS_H_