crash_keys.h 791 B

123456789101112131415161718192021222324252627282930313233
  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 SHELL_COMMON_CRASH_KEYS_H_
  5. #define SHELL_COMMON_CRASH_KEYS_H_
  6. #include <map>
  7. #include <string>
  8. #include "gin/wrappable.h"
  9. namespace base {
  10. class CommandLine;
  11. }
  12. namespace electron {
  13. namespace crash_keys {
  14. void SetCrashKey(const std::string& key, const std::string& value);
  15. void ClearCrashKey(const std::string& key);
  16. void GetCrashKeys(std::map<std::string, std::string>* keys);
  17. void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
  18. void SetPlatformCrashKey();
  19. void SetCrashKeyForGinWrappable(gin::WrapperInfo* info);
  20. } // namespace crash_keys
  21. } // namespace electron
  22. #endif // SHELL_COMMON_CRASH_KEYS_H_