Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_ELF_CRASH_CRASH_HELPER_H_ | |
| 6 #define CHROME_ELF_CRASH_CRASH_HELPER_H_ | |
| 7 | |
| 8 #include <windows.h> | |
| 9 | |
| 10 // Keep all crash-related APIs here. All other chrome_elf code should call here | |
| 11 // for crash support. | |
| 12 namespace elf_crash { | |
| 13 | |
| 14 // Init the crash handling system for entire process. | |
| 15 void InitializeCrashReportingForProcess(); | |
|
robertshield
2016/08/02 02:38:41
Is the ForProcess suffix needed?
penny
2016/08/02 21:07:43
Done.
| |
| 16 | |
| 17 // Any late cleanup before DLL unload. | |
| 18 void DllDetachCrashReportingCleanup(); | |
|
robertshield
2016/08/02 02:38:40
This is a complementary function to InitializeCras
penny
2016/08/02 21:07:43
Done.
| |
| 19 | |
| 20 // Used to control unhandled-exception filters. | |
|
robertshield
2016/08/02 02:38:41
This is a crazy and awesome hack and should be doc
penny
2016/08/02 21:07:43
Done.
| |
| 21 void DisableSetUnhandledExceptionFilter(); | |
| 22 | |
| 23 // Exception handler for exceptions in chrome_elf which need to be passed on to | |
| 24 // the next handler in the chain. Examples include exceptions in DllMain, | |
| 25 // blacklist interception code, etc. | |
|
robertshield
2016/08/02 02:38:40
This comment should also mention that the handler
penny
2016/08/02 21:07:43
Done.
| |
| 26 int GenerateCrashDump(EXCEPTION_POINTERS* exception_pointers); | |
| 27 } | |
| 28 | |
| 29 #endif // CHROME_ELF_CRASH_CRASH_HELPER_H_ | |
| OLD | NEW |