| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 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_COMMON_DUMP_WITHOUT_CRASHING_H_ | |
| 6 #define CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ | |
| 7 | |
| 8 #include "build/build_config.h" | |
| 9 | |
| 10 namespace logging { | |
| 11 | |
| 12 // Handler to silently dump the current process without crashing. | |
| 13 void DumpWithoutCrashing(); | |
| 14 | |
| 15 #if defined(OS_POSIX) | |
| 16 // Sets a function that'll be invoked to dump the current process when | |
| 17 // DumpWithoutCrashing() is called. | |
| 18 void SetDumpWithoutCrashingFunction(void (*function)()); | |
| 19 #endif | |
| 20 | |
| 21 } // namespace logging | |
| 22 | |
| 23 #endif // CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ | |
| OLD | NEW |