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 JniUpdateAvailableCallback : public JniCallbackBase |
| 57 { |
| 58 public: |
| 59 JniUpdateAvailableCallback(JNIEnv* env, jobject callbackObject); |
| 60 void Callback(const std::string& arg); |
| 61 }; |
| 62 |
56 class JniUpdateCheckDoneCallback : public JniCallbackBase | 63 class JniUpdateCheckDoneCallback : public JniCallbackBase |
57 { | 64 { |
58 public: | 65 public: |
59 JniUpdateCheckDoneCallback(JNIEnv* env, jobject callbackObject); | 66 JniUpdateCheckDoneCallback(JNIEnv* env, jobject callbackObject); |
60 void Callback(const std::string& arg); | 67 void Callback(const std::string& arg); |
61 }; | 68 }; |
62 | 69 |
63 class JniFilterChangeCallback : public JniCallbackBase | 70 class JniFilterChangeCallback : public JniCallbackBase |
64 { | 71 { |
65 public: | 72 public: |
(...skipping 21 matching lines...) Expand all Loading... |
87 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea
derList& requestHeaders) const; | 94 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea
derList& requestHeaders) const; |
88 | 95 |
89 private: | 96 private: |
90 jobject NewTuple(JNIEnv* env, const std::string& a, const std::string& b) cons
t; | 97 jobject NewTuple(JNIEnv* env, const std::string& a, const std::string& b) cons
t; |
91 | 98 |
92 const JniGlobalReference<jclass>::Ptr tupleClass; | 99 const JniGlobalReference<jclass>::Ptr tupleClass; |
93 const JniGlobalReference<jclass>::Ptr serverResponseClass; | 100 const JniGlobalReference<jclass>::Ptr serverResponseClass; |
94 }; | 101 }; |
95 | 102 |
96 #endif /* JNICALLBACKS_H */ | 103 #endif /* JNICALLBACKS_H */ |
OLD | NEW |