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

Unified Diff: chrome_elf/crash/crash_helper.h

Issue 2183263003: [chrome_elf] Big ELF cleanup. Part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update with latest trunk. Created 4 years, 4 months 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 | « chrome_elf/chrome_elf_util_unittest.cc ('k') | chrome_elf/crash/crash_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/crash/crash_helper.h
diff --git a/chrome_elf/crash/crash_helper.h b/chrome_elf/crash/crash_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..4275abe212c7935bfaf85efce50c8a96bfe858c4
--- /dev/null
+++ b/chrome_elf/crash/crash_helper.h
@@ -0,0 +1,32 @@
+// 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.
+
+#ifndef CHROME_ELF_CRASH_CRASH_HELPER_H_
+#define CHROME_ELF_CRASH_CRASH_HELPER_H_
+
+#include <windows.h>
+
+// Keep all crash-related APIs here. All other chrome_elf code should call here
+// for crash support.
+namespace elf_crash {
+
+// Init the crash handling system for entire process.
+bool InitializeCrashReporting();
+
+// Any late cleanup of the crash handling system.
+void ShutdownCrashReporting();
+
+// Permanently disables subsequent calls to
+// kernel32!SetUnhandledExceptionFilter(), see comment in .cc for why this is
+// needed.
+void DisableSetUnhandledExceptionFilter();
+
+// Exception handler for exceptions in chrome_elf which need to be passed on to
+// the next handler in the chain. Examples include exceptions in DllMain,
+// blacklist interception code, etc.
+// Note: the handler takes a minidump.
+int GenerateCrashDump(EXCEPTION_POINTERS* exception_pointers);
+}
+
+#endif // CHROME_ELF_CRASH_CRASH_HELPER_H_
« no previous file with comments | « chrome_elf/chrome_elf_util_unittest.cc ('k') | chrome_elf/crash/crash_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698