Index: libadblockplus-android/jni/JniCallbacks.h |
diff --git a/libadblockplus-android/jni/JniCallbacks.h b/libadblockplus-android/jni/JniCallbacks.h |
index 27269b7cb59419fcc46188a56605d0d60bdc2924..533a0c55c9a836cbbc4f4ffa825012c6bf94c4c8 100644 |
--- a/libadblockplus-android/jni/JniCallbacks.h |
+++ b/libadblockplus-android/jni/JniCallbacks.h |
@@ -84,6 +84,18 @@ public: |
void operator()(AdblockPlus::LogSystem::LogLevel logLevel, const std::string& message, const std::string& source); |
}; |
+class JniFileSystemCallback : public JniCallbackBase, public AdblockPlus::FileSystem |
+{ |
+public: |
+ JniFileSystemCallback(JNIEnv* env, jobject callbackObject); |
+ std::shared_ptr<std::istream> Read(const std::string& path) const; |
+ void Write(const std::string& path, std::shared_ptr<std::istream> data); |
+ void Move(const std::string& fromPath, const std::string& toPath); |
+ void Remove(const std::string& path); |
+ AdblockPlus::FileSystem::StatResult Stat(const std::string& path) const; |
+ std::string Resolve(const std::string& path) const; |
+}; |
+ |
class JniShowNotificationCallback : public JniCallbackBase |
{ |
public: |