Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: components/crash/app/crash_reporter_client.h

Issue 692093005: Crash component: adds API for clients to handle the crash minidump. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: context warning doc Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/crash/app/crash_reporter_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/crash_reporter_client.h
diff --git a/components/crash/app/crash_reporter_client.h b/components/crash/app/crash_reporter_client.h
index 4032bd199d790a54047b1e80156becb91e216870..3a580b7214e530ccac00f7857def4b64aa1a3cc6 100644
--- a/components/crash/app/crash_reporter_client.h
+++ b/components/crash/app/crash_reporter_client.h
@@ -103,6 +103,13 @@ class CrashReporterClient {
const char** version);
virtual base::FilePath GetReporterLogFilename();
+
+ // Custom crash minidump handler after the minidump is generated.
+ // Returns true if the minidump is handled (client); otherwise, return false
+ // to fallback to default handler.
+ // WARNING: this handler runs in a compromised context. It may not call into
+ // libc nor allocate memory normally.
+ virtual bool HandleCrashDump(const char* crashdump_filename);
#endif
// The location where minidump files should be written. Returns true if
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/crash/app/crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698