OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GENERATOR_JNI_GENERATOR_HELPER_H_ | 5 #ifndef BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ |
6 #define BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ | 6 #define BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/android/library_loader/library_loader_hooks.h" |
11 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
14 | 15 |
15 // Project-specific macros used by the header files generated by | 16 // Project-specific macros used by the header files generated by |
16 // jni_generator.py. Different projects can then specify their own | 17 // jni_generator.py. Different projects can then specify their own |
17 // implementation for this file. | 18 // implementation for this file. |
18 #define CHECK_NATIVE_PTR(env, jcaller, native_ptr, method_name, ...) \ | 19 #define CHECK_NATIVE_PTR(env, jcaller, native_ptr, method_name, ...) \ |
19 DCHECK(native_ptr) << method_name; | 20 DCHECK(native_ptr) << method_name; |
20 | 21 |
(...skipping 17 matching lines...) Expand all Loading... |
38 LOG(ERROR) << "RegisterNatives failed in " << filename; | 39 LOG(ERROR) << "RegisterNatives failed in " << filename; |
39 } | 40 } |
40 | 41 |
41 inline void CheckException(JNIEnv* env) { | 42 inline void CheckException(JNIEnv* env) { |
42 base::android::CheckException(env); | 43 base::android::CheckException(env); |
43 } | 44 } |
44 | 45 |
45 } // namespace jni_generator | 46 } // namespace jni_generator |
46 | 47 |
47 #endif // BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ | 48 #endif // BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ |
OLD | NEW |