| 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 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 // TODO(torne): remove this when callers of GetApplicationContext have been | |
| 14 // fixed to include context_utils.h. http://crbug.com/552419 | |
| 15 #include "base/android/context_utils.h" | |
| 16 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
| 17 #include "base/atomicops.h" | 14 #include "base/atomicops.h" |
| 18 #include "base/base_export.h" | 15 #include "base/base_export.h" |
| 19 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 20 | 17 |
| 21 namespace base { | 18 namespace base { |
| 22 namespace android { | 19 namespace android { |
| 23 | 20 |
| 24 // Used to mark symbols to be exported in a shared library's symbol table. | 21 // Used to mark symbols to be exported in a shared library's symbol table. |
| 25 #define JNI_EXPORT __attribute__ ((visibility("default"))) | 22 #define JNI_EXPORT __attribute__ ((visibility("default"))) |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 BASE_EXPORT void CheckException(JNIEnv* env); | 119 BASE_EXPORT void CheckException(JNIEnv* env); |
| 123 | 120 |
| 124 // This returns a string representation of the java stack trace. | 121 // This returns a string representation of the java stack trace. |
| 125 BASE_EXPORT std::string GetJavaExceptionInfo(JNIEnv* env, | 122 BASE_EXPORT std::string GetJavaExceptionInfo(JNIEnv* env, |
| 126 jthrowable java_throwable); | 123 jthrowable java_throwable); |
| 127 | 124 |
| 128 } // namespace android | 125 } // namespace android |
| 129 } // namespace base | 126 } // namespace base |
| 130 | 127 |
| 131 #endif // BASE_ANDROID_JNI_ANDROID_H_ | 128 #endif // BASE_ANDROID_JNI_ANDROID_H_ |
| OLD | NEW |