OLD | NEW |
1 // Copyright 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 // Public interface for enabling Breakpad on Linux systems. | 5 // Public interface for enabling Breakpad on Linux systems. |
6 | 6 |
7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 extern void SuppressDumpGeneration(); | 54 extern void SuppressDumpGeneration(); |
55 #endif // defined(OS_ANDROID) | 55 #endif // defined(OS_ANDROID) |
56 | 56 |
57 // Checks if crash reporting is enabled. Note that this is not the same as | 57 // Checks if crash reporting is enabled. Note that this is not the same as |
58 // being opted into metrics reporting (and crash reporting), which controls | 58 // being opted into metrics reporting (and crash reporting), which controls |
59 // whether InitCrashReporter() is called. | 59 // whether InitCrashReporter() is called. |
60 bool IsCrashReporterEnabled(); | 60 bool IsCrashReporterEnabled(); |
61 | 61 |
62 // Generates a minidump on demand for this process, writing it to |dump_fd|. | 62 // Generates a minidump on demand for this process, writing it to |dump_fd|. |
63 void GenerateMinidumpOnDemandForAndroid(int dump_fd); | 63 void GenerateMinidumpOnDemandForAndroid(int dump_fd); |
| 64 |
| 65 // Install a handler that gets a change to handle faults before Breakpad does |
| 66 // any processing. This is used by V8 for trap-based bounds checks. |
| 67 void SetFirstChanceExceptionHandler(bool (*handler)(int, void*, void*)); |
64 } // namespace breakpad | 68 } // namespace breakpad |
65 | 69 |
66 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 70 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
OLD | NEW |