chromium/headless/lib/headless_crash_reporter_client.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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

}  // namespace

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  // BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC)

bool HeadlessCrashReporterClient::GetCrashDumpLocation(
#if BUILDFLAG(IS_WIN)
    std::wstring* crash_dir
#else
    base::FilePath* crash_dir
#endif
) {}

bool HeadlessCrashReporterClient::IsRunningUnattended() {}

bool HeadlessCrashReporterClient::GetCollectStatsConsent() {}

}  // namespace content