crash_keys.h 705 B

1234567891011121314151617181920212223242526
  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::crash_keys {
  12. void SetCrashKey(const std::string& key, const std::string& value);
  13. void ClearCrashKey(const std::string& key);
  14. void GetCrashKeys(std::map<std::string, std::string>* keys);
  15. void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
  16. void SetPlatformCrashKey();
  17. } // namespace electron::crash_keys
  18. #endif // ELECTRON_SHELL_COMMON_CRASH_KEYS_H_