Index: base/android/jni_array.h |
diff --git a/base/android/jni_array.h b/base/android/jni_array.h |
index efa6aa8ffe892666f34cf7f3dfd9a100110ee528..9d9be67b84977c3c4d26d094394445f058995658 100644 |
--- a/base/android/jni_array.h |
+++ b/base/android/jni_array.h |
@@ -20,6 +20,13 @@ namespace android { |
BASE_EXPORT ScopedJavaLocalRef<jbyteArray> ToJavaByteArray( |
JNIEnv* env, const uint8* bytes, size_t len); |
+// Returns a new Java int array converted from the given int array. |
+BASE_EXPORT ScopedJavaLocalRef<jintArray> ToJavaIntArray( |
+ JNIEnv* env, const int* ints, size_t len); |
+ |
+BASE_EXPORT ScopedJavaLocalRef<jintArray> ToJavaIntArray( |
+ JNIEnv* env, const std::vector<int>& ints); |
+ |
// Returns a new Java long array converted from the given int64 array. |
BASE_EXPORT ScopedJavaLocalRef<jlongArray> ToJavaLongArray( |
JNIEnv* env, const int64* longs, size_t len); |