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_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
2020-05-07 20:31:26 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include "base/files/file_path.h"
|
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
|
|
|
namespace api {
|
|
|
|
|
|
|
|
namespace crash_reporter {
|
|
|
|
|
|
|
|
bool IsCrashReporterEnabled();
|
|
|
|
|
2022-02-10 02:58:52 +00:00
|
|
|
#if BUILDFLAG(IS_LINUX)
|
2020-05-07 20:31:26 +00:00
|
|
|
const std::map<std::string, std::string>& GetGlobalCrashKeys();
|
2020-08-07 22:30:49 +00:00
|
|
|
std::string GetClientId();
|
2020-05-07 20:31:26 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// JS bindings API; exposed publicly because it's also called from node_main.cc
|
|
|
|
void Start(const std::string& submit_url,
|
|
|
|
bool upload_to_server,
|
|
|
|
bool ignore_system_crash_handler,
|
|
|
|
bool rate_limit,
|
|
|
|
bool compress,
|
|
|
|
const std::map<std::string, std::string>& global_extra,
|
|
|
|
const std::map<std::string, std::string>& extra,
|
|
|
|
bool is_node_process);
|
|
|
|
|
|
|
|
} // namespace crash_reporter
|
|
|
|
|
|
|
|
} // namespace api
|
|
|
|
|
|
|
|
} // namespace electron
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|