2020-05-07 20:31:26 +00:00
|
|
|
// Copyright (c) 2020 Slack Technologies, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_CRASH_KEYS_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_CRASH_KEYS_H_
|
2020-05-07 20:31:26 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace base {
|
|
|
|
class CommandLine;
|
|
|
|
}
|
|
|
|
|
2022-06-29 19:55:47 +00:00
|
|
|
namespace electron::crash_keys {
|
2020-05-07 20:31:26 +00:00
|
|
|
|
|
|
|
void SetCrashKey(const std::string& key, const std::string& value);
|
|
|
|
void ClearCrashKey(const std::string& key);
|
|
|
|
void GetCrashKeys(std::map<std::string, std::string>* keys);
|
|
|
|
|
|
|
|
void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
|
|
|
|
void SetPlatformCrashKey();
|
2021-08-18 20:51:40 +00:00
|
|
|
|
2022-06-29 19:55:47 +00:00
|
|
|
} // namespace electron::crash_keys
|
2020-05-07 20:31:26 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_CRASH_KEYS_H_
|