#include "headless/lib/headless_crash_reporter_client.h"
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/environment.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "components/version_info/version_info.h"
#include "content/public/common/content_switches.h"
namespace headless {
namespace {
#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC)
constexpr char kChromeHeadlessProductName[] = …;
#endif
}
HeadlessCrashReporterClient::HeadlessCrashReporterClient() = default;
HeadlessCrashReporterClient::~HeadlessCrashReporterClient() = default;
#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC)
void HeadlessCrashReporterClient::GetProductNameAndVersion(
std::string* product_name,
std::string* version,
std::string* channel) { … }
#endif
bool HeadlessCrashReporterClient::GetCrashDumpLocation(
#if BUILDFLAG(IS_WIN)
std::wstring* crash_dir
#else
base::FilePath* crash_dir
#endif
) { … }
bool HeadlessCrashReporterClient::IsRunningUnattended() { … }
bool HeadlessCrashReporterClient::GetCollectStatsConsent() { … }
}