Chromium Code Reviews| 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__ | |
|
Lei Zhang
2013/01/31 21:56:22
nit: one underscore at the end. I realize logging_
Mark Seaborn
2013/01/31 23:09:26
Done.
| |
| 6 #define CHROME_COMMON_DUMP_WITHOUT_CRASHING_H__ | |
| 7 | |
| 8 namespace logging { | |
| 9 | |
| 10 // Handler to silently dump the current process without crashing. | |
| 11 void DumpWithoutCrashing(); | |
| 12 | |
| 13 #if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX) | |
| 14 // Sets a function that'll be invoked to dump the current process when | |
| 15 // DumpWithoutCrashing() is called. | |
| 16 void SetDumpWithoutCrashingFunction(void (*function)()); | |
| 17 #endif | |
| 18 | |
| 19 } // namespace logging | |
| 20 | |
| 21 #endif // CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ | |
| OLD | NEW |