Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/JniJsValue.h

Issue 29354787: Issue 4442 - Cache class and ctors references in JNI_Load/UnLoad (Closed)
Patch Set: Created Sept. 23, 2016, 12:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/jni/JniJsValue.h
diff --git a/libadblockplus-android/jni/JniJsValue.h b/libadblockplus-android/jni/JniJsValue.h
index afacde2fe4a802ba275db36daa1aa4003445327c..0a67054aa432b79b5a6860516faec594892808d2 100644
--- a/libadblockplus-android/jni/JniJsValue.h
+++ b/libadblockplus-android/jni/JniJsValue.h
@@ -25,6 +25,8 @@ void JniJsValue_OnLoad(JavaVM* vm, JNIEnv* env, void* reserved);
void JniJsValue_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved);
+jclass GetJsValueClass();
+
jobject NewJniJsValue(JNIEnv* env, const AdblockPlus::JsValuePtr& jsValue, jclass jsValueClass = 0);
jobject JniJsValueListToArrayList(JNIEnv* env, AdblockPlus::JsValueList& list);

Powered by Google App Engine
This is Rietveld