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