| Index: chrome/app/breakpad_linux.h
|
| diff --git a/chrome/app/breakpad_linux.h b/chrome/app/breakpad_linux.h
|
| index 8f469261c45947d7e6d85487ecaf18a44b9c3d9c..ab213f88215cad207daa77bef49229370c3ad654 100644
|
| --- a/chrome/app/breakpad_linux.h
|
| +++ b/chrome/app/breakpad_linux.h
|
| @@ -2,55 +2,25 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +// Public interface for enabling Breakpad on Linux systems. This can be
|
| +// included in files that are not built with linux_breakpad=1.
|
| +
|
| #ifndef CHROME_APP_BREAKPAD_LINUX_H_
|
| #define CHROME_APP_BREAKPAD_LINUX_H_
|
|
|
| -#include <sys/types.h>
|
| -
|
| -#include "base/basictypes.h"
|
| +#include "build/build_config.h"
|
|
|
| +// Turns on the crash reporter in any process.
|
| extern void InitCrashReporter();
|
| +
|
| +// Enables the crash reporter in child processes.
|
| #if defined(OS_ANDROID)
|
| extern void InitNonBrowserCrashReporterForAndroid();
|
| #endif
|
| -bool IsCrashReporterEnabled();
|
|
|
| -static const size_t kMaxActiveURLSize = 1024;
|
| -static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex.
|
| -static const size_t kDistroSize = 128;
|
| -#if defined(ADDRESS_SANITIZER)
|
| -static const size_t kMaxAsanReportSize = 1 << 16;
|
| -#endif
|
| -// Define a preferred limit on minidump sizes, because Crash Server currently
|
| -// throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means
|
| -// no limit.
|
| -static const off_t kMaxMinidumpFileSize = 1258291;
|
| -
|
| -// BreakpadInfo describes a crash report.
|
| -// The minidump information can either be contained in a file descriptor (fd) or
|
| -// in a file (whose path is in filename).
|
| -struct BreakpadInfo {
|
| - int fd; // File descriptor to the Breakpad dump data.
|
| - const char* filename; // Path to the Breakpad dump data.
|
| -#if defined(ADDRESS_SANITIZER)
|
| - const char* log_filename; // Path to the ASan log file.
|
| - const char* asan_report_str; // ASan report.
|
| - unsigned asan_report_length; // Length of |asan_report_length|.
|
| -#endif
|
| - const char* process_type; // Process type, e.g. "renderer".
|
| - unsigned process_type_length; // Length of |process_type|.
|
| - const char* crash_url; // Active URL in the crashing process.
|
| - unsigned crash_url_length; // Length of |crash_url|.
|
| - const char* guid; // Client ID.
|
| - unsigned guid_length; // Length of |guid|.
|
| - const char* distro; // Linux distro string.
|
| - unsigned distro_length; // Length of |distro|.
|
| - bool upload; // Whether to upload or save crash dump.
|
| - uint64_t process_start_time; // Uptime of the crashing process.
|
| - size_t oom_size; // Amount of memory requested if OOM.
|
| - uint64_t pid; // PID where applicable.
|
| -};
|
| -
|
| -extern void HandleCrashDump(const BreakpadInfo& info);
|
| +// Checks if crash reporting is enabled. Note that this is not the same as
|
| +// being opted into metrics reporting (and crash reporting), which controls
|
| +// whether InitCrashReporter() is called.
|
| +bool IsCrashReporterEnabled();
|
|
|
| #endif // CHROME_APP_BREAKPAD_LINUX_H_
|
|
|