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

Unified Diff: base/android/jni_array.h

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/jni_android.h ('k') | base/android/jni_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_array.h
diff --git a/base/android/jni_array.h b/base/android/jni_array.h
index e9f6213478bfe56faa1ebcf0e9606e91f8f99fe9..86433a358c55a6509e7ae490521da8612d349bd4 100644
--- a/base/android/jni_array.h
+++ b/base/android/jni_array.h
@@ -17,42 +17,47 @@ namespace base {
namespace android {
// Returns a new Java byte array converted from the given bytes array.
-ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(
+BASE_EXPORT ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(
JNIEnv* env, const uint8* bytes, size_t len);
// Returns a array of Java byte array converted from |v|.
-ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfByteArray(
+BASE_EXPORT ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfByteArray(
JNIEnv* env, const std::vector<std::string>& v);
-ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfStrings(
+BASE_EXPORT ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfStrings(
JNIEnv* env, const std::vector<std::string>& v);
-ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfStrings(
+BASE_EXPORT ScopedJavaLocalRef<jobjectArray> ToJavaArrayOfStrings(
JNIEnv* env, const std::vector<string16>& v);
// Converts a Java string array to a native array.
-void AppendJavaStringArrayToStringVector(JNIEnv* env,
- jobjectArray array,
- std::vector<string16>* out);
+BASE_EXPORT void AppendJavaStringArrayToStringVector(
+ JNIEnv* env,
+ jobjectArray array,
+ std::vector<string16>* out);
-void AppendJavaStringArrayToStringVector(JNIEnv* env,
- jobjectArray array,
- std::vector<std::string>* out);
+BASE_EXPORT void AppendJavaStringArrayToStringVector(
+ JNIEnv* env,
+ jobjectArray array,
+ std::vector<std::string>* out);
// Appends the Java bytes in |bytes_array| onto the end of |out|.
-void AppendJavaByteArrayToByteVector(JNIEnv* env,
- jbyteArray byte_array,
- std::vector<uint8>* out);
+BASE_EXPORT void AppendJavaByteArrayToByteVector(
+ JNIEnv* env,
+ jbyteArray byte_array,
+ std::vector<uint8>* out);
// Replaces the content of |out| with the Java bytes in |bytes_array|.
-void JavaByteArrayToByteVector(JNIEnv* env,
- jbyteArray byte_array,
- std::vector<uint8>* out);
+BASE_EXPORT void JavaByteArrayToByteVector(
+ JNIEnv* env,
+ jbyteArray byte_array,
+ std::vector<uint8>* out);
// Replaces the content of |out| with the Java ints in |int_array|.
-void JavaIntArrayToIntVector(JNIEnv* env,
- jintArray int_array,
- std::vector<int>* out);
+BASE_EXPORT void JavaIntArrayToIntVector(
+ JNIEnv* env,
+ jintArray int_array,
+ std::vector<int>* out);
} // namespace android
} // namespace base
« no previous file with comments | « base/android/jni_android.h ('k') | base/android/jni_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698