| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ | 5 #ifndef BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ |
| 6 #define CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ | 6 #define BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ |
| 7 | 7 |
| 8 #include "base/base_export.h" |
| 9 #include "base/compiler_specific.h" |
| 8 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 9 | 11 |
| 10 namespace logging { | 12 namespace base { |
| 13 |
| 14 namespace debug { |
| 11 | 15 |
| 12 // Handler to silently dump the current process without crashing. | 16 // Handler to silently dump the current process without crashing. |
| 13 void DumpWithoutCrashing(); | 17 BASE_EXPORT void DumpWithoutCrashing(); |
| 14 | 18 |
| 15 #if defined(OS_POSIX) | |
| 16 // Sets a function that'll be invoked to dump the current process when | 19 // Sets a function that'll be invoked to dump the current process when |
| 17 // DumpWithoutCrashing() is called. | 20 // DumpWithoutCrashing() is called. |
| 18 void SetDumpWithoutCrashingFunction(void (*function)()); | 21 BASE_EXPORT void SetDumpWithoutCrashingFunction(void (CDECL *function)()); |
| 19 #endif | |
| 20 | 22 |
| 21 } // namespace logging | 23 } // namespace debug |
| 22 | 24 |
| 23 #endif // CHROME_COMMON_DUMP_WITHOUT_CRASHING_H_ | 25 } // namespace base |
| 26 |
| 27 #endif // BASE_DEBUG_DUMP_WITHOUT_CRASHING_H_ |
| OLD | NEW |