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

Side by Side Diff: base/android/jni_array.h

Issue 7518032: Android's paths and message loop implementation with JNI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependence again. Created 9 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 // Author: michaelbai@google.com (Tao Bai)
3
4
5 #ifndef BASE_ANDROID_JNI_ARRAY_H_
6 #define BASE_ANDROID_JNI_ARRAY_H_
7
8 #include <jni.h>
9 #include <string>
10 #include <vector>
11
12 namespace base {
13 namespace android {
14
15 // Returns a new Java byte array converted from the given bytes array.
16 jbyteArray ToJavaByteArray(JNIEnv* env, const unsigned char* bytes, size_t len);
17
18 // Returns a array of Java byte array converted from |v|.
19 jobjectArray ToJavaArrayOfByteArray(JNIEnv* env,
20 const std::vector<std::string>& v);
21
22 } // namespace android
23 } // namespace base
24
25 #endif // BASE_ANDROID_JNI_ARRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698