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

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

Issue 29536629: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: address comments Created Sept. 8, 2017, 9:39 a.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
« no previous file with comments | « libadblockplus-android/jni/JniNotification.cpp ('k') | libadblockplus-android/jni/JniPlatform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/jni/JniPlatform.h
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/WebRequest.java b/libadblockplus-android/jni/JniPlatform.h
similarity index 76%
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/WebRequest.java
copy to libadblockplus-android/jni/JniPlatform.h
index 35f43f58235984a73851a3ad928b366642d48ffa..d3510322a17d0ae62243fccad04539673a96066c 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/WebRequest.java
+++ b/libadblockplus-android/jni/JniPlatform.h
@@ -15,11 +15,15 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
+#ifndef JNI_PLATFORM_H
+#define JNI_PLATFORM_H
-import java.util.List;
+#include <AdblockPlus/Platform.h>
-public interface WebRequest
+struct JniPlatform
{
- ServerResponse httpGET(String url, List<HeaderEntry> headers);
-}
+ AdblockPlus::Scheduler scheduler;
+ std::unique_ptr<AdblockPlus::Platform> platform;
+};
+
+#endif /* JNI_PLATFORM_H */
« no previous file with comments | « libadblockplus-android/jni/JniNotification.cpp ('k') | libadblockplus-android/jni/JniPlatform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld