Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
Mark Mentovai
2013/12/17 20:12:09
It would be awesome if this showed up as a copy fr
| |
| 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 BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ | |
| 6 #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ | |
| 7 | |
| 8 #include "base/base_export.h" | |
| 9 #include "build/build_config.h" | |
| 10 | |
| 11 namespace base { | |
| 12 | |
| 13 namespace debug { | |
| 14 | |
| 15 // Handler to silently dump the current process without crashing. | |
| 16 BASE_EXPORT void DumpWithoutCrashing(); | |
| 17 | |
| 18 // Sets a function that'll be invoked to dump the current process when | |
| 19 // DumpWithoutCrashing() is called. | |
| 20 #if defined(OS_POSIX) | |
| 21 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (*function)()); | |
| 22 #elif defined(OS_WIN) | |
| 23 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (__cdecl *function)()); | |
| 24 #endif | |
| 25 | |
| 26 } // namespace debug | |
| 27 | |
| 28 } // namespace base | |
| 29 | |
| 30 #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ | |
| OLD | NEW |