diff options
Diffstat (limited to 'chrome/app/breakpad_linux.h')
-rw-r--r-- | chrome/app/breakpad_linux.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/app/breakpad_linux.h b/chrome/app/breakpad_linux.h index 518cf42..0c3ccde 100644 --- a/chrome/app/breakpad_linux.h +++ b/chrome/app/breakpad_linux.h @@ -5,6 +5,8 @@ #ifndef CHROME_APP_BREAKPAD_LINUX_H_ #define CHROME_APP_BREAKPAD_LINUX_H_ +#include <string> + extern void InitCrashReporter(); #if defined(GOOGLE_CHROME_BUILD) @@ -25,6 +27,19 @@ struct BreakpadInfo { }; extern int UploadCrashDump(const BreakpadInfo& info); + +// Checks that the kernel's core filename pattern is "core" and moves the +// current working directory to a temp directory. +// Returns true iff core dumping has been successfully enabled for the current +// process. +bool EnableCoreDumping(std::string* core_dump_directory); +// Blocks until the given child has exited. If the kernel indicates that the +// child dumped core, then the core is expected a file called "core" and is +// uploaded to a collection server. The core file is deleted and the given +// directory is removed. +void MonitorForCoreDumpsAndReport(const std::string& core_dump_directory, + const pid_t child); + #endif // defined(GOOGLE_CHROME_BUILD) #endif // CHROME_APP_BREAKPAD_LINUX_H_ |