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

Side by Side Diff: jni/JniCallbacks.h

Issue 5153282527854592: Issue 98 - Use the libadblockplus update mechanism (Closed)
Patch Set: Only append the revision to the version for devbuilds Created Sept. 26, 2014, 2:54 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « jni/Android.mk ('k') | jni/JniFilterEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « jni/Android.mk ('k') | jni/JniFilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld