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

Unified Diff: libadblockplus-android/jni/JniWebRequest.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/JniWebRequest.h
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java b/libadblockplus-android/jni/JniWebRequest.h
similarity index 74%
copy from libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java
copy to libadblockplus-android/jni/JniWebRequest.h
index a7988cb8b932e37f6014c4b55763ac95357e5662..31509575e3f55d9c41aa10480e70516890a87ecd 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java
+++ b/libadblockplus-android/jni/JniWebRequest.h
@@ -15,12 +15,13 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
+#ifndef JNIWEBREQUEST_H
+#define JNIWEBREQUEST_H
-public class NoOpUpdaterCallback extends UpdateCheckDoneCallback
anton 2016/09/23 13:07:09 rietveld bug - the file did not exist before
-{
- @Override
- public void updateCheckDoneCallback(String error)
- {
- }
-}
+#include <jni.h>
+
+void JniWebRequest_OnLoad(JavaVM* vm, JNIEnv* env, void* reserved);
+
+void JniWebRequest_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved);
+
+#endif /* JNIWEBREQUEST_H */

Powered by Google App Engine
This is Rietveld