2016-12-12 11:05:29 +01:00
|
|
|
// Copyright 2016 The Chromium Embedded Framework Authors. Portions copyright
|
|
|
|
// 2016 The Chromium Authors. All rights reserved. Use of this source code is
|
|
|
|
// governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#include <string>
|
2024-04-23 22:06:00 +02:00
|
|
|
#include <string_view>
|
2016-12-12 11:05:29 +01:00
|
|
|
|
|
|
|
#include "build/build_config.h"
|
|
|
|
|
|
|
|
namespace base {
|
|
|
|
class CommandLine;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace crash_reporting {
|
|
|
|
|
2017-01-23 18:36:54 +01:00
|
|
|
// Returns true if crash reporting is enabled.
|
|
|
|
bool Enabled();
|
|
|
|
|
2018-02-15 01:12:09 +01:00
|
|
|
// Set or clear a crash key value.
|
2024-04-23 22:06:00 +02:00
|
|
|
bool SetCrashKeyValue(const std::string_view& key,
|
|
|
|
const std::string_view& value);
|
2018-02-15 01:12:09 +01:00
|
|
|
|
2020-06-28 20:29:44 +02:00
|
|
|
// Functions are called from similarly named methods in AlloyMainDelegate.
|
2016-12-12 11:05:29 +01:00
|
|
|
|
2022-01-24 18:58:02 +01:00
|
|
|
#if BUILDFLAG(IS_POSIX)
|
2016-12-12 11:05:29 +01:00
|
|
|
void BasicStartupComplete(base::CommandLine* command_line);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void PreSandboxStartup(const base::CommandLine& command_line,
|
|
|
|
const std::string& process_type);
|
|
|
|
|
2022-01-24 18:58:02 +01:00
|
|
|
#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_MAC)
|
2016-12-12 11:05:29 +01:00
|
|
|
void ZygoteForked(base::CommandLine* command_line,
|
|
|
|
const std::string& process_type);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace crash_reporting
|