| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_JNI_ANDROID_H_ | 5 #ifndef BASE_ANDROID_JNI_ANDROID_H_ |
| 6 #define BASE_ANDROID_JNI_ANDROID_H_ | 6 #define BASE_ANDROID_JNI_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Returns true if an exception is pending in the provided JNIEnv*. | 123 // Returns true if an exception is pending in the provided JNIEnv*. |
| 124 BASE_EXPORT bool HasException(JNIEnv* env); | 124 BASE_EXPORT bool HasException(JNIEnv* env); |
| 125 | 125 |
| 126 // If an exception is pending in the provided JNIEnv*, this function clears it | 126 // If an exception is pending in the provided JNIEnv*, this function clears it |
| 127 // and returns true. | 127 // and returns true. |
| 128 BASE_EXPORT bool ClearException(JNIEnv* env); | 128 BASE_EXPORT bool ClearException(JNIEnv* env); |
| 129 | 129 |
| 130 // This function will call CHECK() macro if there's any pending exception. | 130 // This function will call CHECK() macro if there's any pending exception. |
| 131 BASE_EXPORT void CheckException(JNIEnv* env); | 131 BASE_EXPORT void CheckException(JNIEnv* env); |
| 132 | 132 |
| 133 // This returns a string representation of the java stack trace. |
| 134 BASE_EXPORT std::string GetJavaExceptionInfo(JNIEnv* env, |
| 135 jthrowable java_throwable); |
| 136 |
| 133 } // namespace android | 137 } // namespace android |
| 134 } // namespace base | 138 } // namespace base |
| 135 | 139 |
| 136 #endif // BASE_ANDROID_JNI_ANDROID_H_ | 140 #endif // BASE_ANDROID_JNI_ANDROID_H_ |
| OLD | NEW |