Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: base/android/java_exception_reporter.h

Issue 2687193003: android: Report child exception by crashing (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « base/android/java/src/org/chromium/base/JavaExceptionReporter.java ('k') | base/android/java_exception_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698