| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BASE_ANDROID_JAVA_EXCEPTION_REPORTER_H_ | 5 #ifndef BASE_ANDROID_JAVA_EXCEPTION_REPORTER_H_ |
| 6 #define BASE_ANDROID_JAVA_EXCEPTION_REPORTER_H_ | 6 #define BASE_ANDROID_JAVA_EXCEPTION_REPORTER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 namespace android { | 13 namespace android { |
| 14 | 14 |
| 15 // Install the exception handler. This should only be called once per process. | 15 // Install the exception handler. This should only be called once per process. |
| 16 BASE_EXPORT void InitJavaExceptionReporter(); | 16 BASE_EXPORT void InitJavaExceptionReporter(); |
| 17 | 17 |
| 18 // Same as above except the handler ensures child process exists immediately |
| 19 // after an unhandled exception. This is used for child processes because |
| 20 // DumpWithoutCrashing does not work for child processes on Android. |
| 21 BASE_EXPORT void InitJavaExceptionReporterForChildProcess(); |
| 22 |
| 18 bool RegisterJavaExceptionReporterJni(JNIEnv* env); | 23 bool RegisterJavaExceptionReporterJni(JNIEnv* env); |
| 19 | 24 |
| 20 } // namespace android | 25 } // namespace android |
| 21 } // namespace base | 26 } // namespace base |
| 22 | 27 |
| 23 #endif // BASE_ANDROID_JAVA_EXCEPTION_REPORTER_H_ | 28 #endif // BASE_ANDROID_JAVA_EXCEPTION_REPORTER_H_ |
| OLD | NEW |