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

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

Issue 1141793003: Update from https://crrev.com/329939 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « base/android/java_runtime.h ('k') | base/android/jni_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/android/java_runtime.h ('k') | base/android/jni_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698