| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const JniGlobalReference<jclass>::Ptr exceptionLoggerClass; | 46 const JniGlobalReference<jclass>::Ptr exceptionLoggerClass; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 class JniEventCallback : public JniCallbackBase | 49 class JniEventCallback : public JniCallbackBase |
| 50 { | 50 { |
| 51 public: | 51 public: |
| 52 JniEventCallback(JNIEnv* env, jobject callbackObject); | 52 JniEventCallback(JNIEnv* env, jobject callbackObject); |
| 53 void Callback(AdblockPlus::JsValueList& params); | 53 void Callback(AdblockPlus::JsValueList& params); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 class JniUpdaterCallback : public JniCallbackBase | 56 class JniUpdateCheckDoneCallback : public JniCallbackBase |
| 57 { | 57 { |
| 58 public: | 58 public: |
| 59 JniUpdaterCallback(JNIEnv* env, jobject callbackObject); | 59 JniUpdateCheckDoneCallback(JNIEnv* env, jobject callbackObject); |
| 60 void Callback(const std::string& arg); | 60 void Callback(const std::string& arg); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class JniFilterChangeCallback : public JniCallbackBase | 63 class JniFilterChangeCallback : public JniCallbackBase |
| 64 { | 64 { |
| 65 public: | 65 public: |
| 66 JniFilterChangeCallback(JNIEnv* env, jobject callbackObject); | 66 JniFilterChangeCallback(JNIEnv* env, jobject callbackObject); |
| 67 void Callback(const std::string& arg, const AdblockPlus::JsValuePtr jsValue); | 67 void Callback(const std::string& arg, const AdblockPlus::JsValuePtr jsValue); |
| 68 | 68 |
| 69 private: | 69 private: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 87 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea
derList& requestHeaders) const; | 87 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea
derList& requestHeaders) const; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 jobject NewTuple(JNIEnv* env, const std::string& a, const std::string& b) cons
t; | 90 jobject NewTuple(JNIEnv* env, const std::string& a, const std::string& b) cons
t; |
| 91 | 91 |
| 92 const JniGlobalReference<jclass>::Ptr tupleClass; | 92 const JniGlobalReference<jclass>::Ptr tupleClass; |
| 93 const JniGlobalReference<jclass>::Ptr serverResponseClass; | 93 const JniGlobalReference<jclass>::Ptr serverResponseClass; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif /* JNICALLBACKS_H */ | 96 #endif /* JNICALLBACKS_H */ |
| OLD | NEW |