2020-05-07 23:31:26 +03: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 10:34:31 +03:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
2020-05-07 23:31:26 +03:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2024-07-25 12:25:45 +03:00
|
|
|
|
|
|
|
#include "build/build_config.h"
|
2020-05-07 23:31:26 +03:00
|
|
|
|
2022-06-29 22:55:47 +03:00
|
|
|
namespace electron::api::crash_reporter {
|
2020-05-07 23:31:26 +03:00
|
|
|
|
|
|
|
bool IsCrashReporterEnabled();
|
|
|
|
|
2022-02-10 05:58:52 +03:00
|
|
|
#if BUILDFLAG(IS_LINUX)
|
2020-05-07 23:31:26 +03:00
|
|
|
const std::map<std::string, std::string>& GetGlobalCrashKeys();
|
2020-08-08 01:30:49 +03:00
|
|
|
std::string GetClientId();
|
2020-05-07 23:31:26 +03: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);
|
|
|
|
|
2022-06-29 22:55:47 +03:00
|
|
|
} // namespace electron::api::crash_reporter
|
2020-05-07 23:31:26 +03:00
|
|
|
|
2021-11-22 10:34:31 +03:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|