OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // This file contain convenience functions and classes for JNI. | 11 // This file contain convenience functions and classes for JNI. |
12 // Before using any of the methods, InitGlobalJniVariables must be called. | 12 // Before using any of the methods, InitGlobalJniVariables must be called. |
13 | 13 |
14 #ifndef WEBRTC_API_JAVA_JNI_JNI_HELPERS_H_ | 14 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_JNI_HELPERS_H_ |
15 #define WEBRTC_API_JAVA_JNI_JNI_HELPERS_H_ | 15 #define WEBRTC_SDK_ANDROID_SRC_JNI_JNI_HELPERS_H_ |
16 | 16 |
17 #include <jni.h> | 17 #include <jni.h> |
18 #include <string> | 18 #include <string> |
19 | 19 |
20 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
21 #include "webrtc/base/checks.h" | 21 #include "webrtc/base/checks.h" |
22 #include "webrtc/base/thread_checker.h" | 22 #include "webrtc/base/thread_checker.h" |
23 | 23 |
24 // Abort the process if |jni| has a Java exception pending. | 24 // Abort the process if |jni| has a Java exception pending. |
25 // This macros uses the comma operator to execute ExceptionDescribe | 25 // This macros uses the comma operator to execute ExceptionDescribe |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 private: | 182 private: |
183 JNIEnv* jni_; | 183 JNIEnv* jni_; |
184 jobject iterable_; | 184 jobject iterable_; |
185 | 185 |
186 RTC_DISALLOW_COPY_AND_ASSIGN(Iterable); | 186 RTC_DISALLOW_COPY_AND_ASSIGN(Iterable); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace webrtc_jni | 189 } // namespace webrtc_jni |
190 | 190 |
191 #endif // WEBRTC_API_JAVA_JNI_JNI_HELPERS_H_ | 191 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_JNI_HELPERS_H_ |
OLD | NEW |