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

Side by Side Diff: jni/JniCallbacks.h

Issue 29329928: Issue 3297 - Fix issues introduced by recent libadblockplus changes and update dependencies (Closed)
Patch Set: MinSDK and copy'n'paste Created Nov. 20, 2015, 12:19 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/Application.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 <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class JniLogSystemCallback : public JniCallbackBase, public AdblockPlus::LogSyst em 80 class JniLogSystemCallback : public JniCallbackBase, public AdblockPlus::LogSyst em
81 { 81 {
82 public: 82 public:
83 JniLogSystemCallback(JNIEnv* env, jobject callbackObject); 83 JniLogSystemCallback(JNIEnv* env, jobject callbackObject);
84 void operator()(AdblockPlus::LogSystem::LogLevel logLevel, const std::string& message, const std::string& source); 84 void operator()(AdblockPlus::LogSystem::LogLevel logLevel, const std::string& message, const std::string& source);
85 85
86 private: 86 private:
87 const JniGlobalReference<jclass>::Ptr logLevelClass; 87 const JniGlobalReference<jclass>::Ptr logLevelClass;
88 }; 88 };
89 89
90 class JniShowNotificationCallback : public JniCallbackBase
91 {
92 public:
93 JniShowNotificationCallback(JNIEnv* env, jobject callbackObject);
94 void Callback(const AdblockPlus::NotificationPtr&);
95
96 private:
97 const JniGlobalReference<jclass>::Ptr notificationClass;
98 };
99
90 class JniWebRequest : public JniCallbackBase, public AdblockPlus::WebRequest 100 class JniWebRequest : public JniCallbackBase, public AdblockPlus::WebRequest
91 { 101 {
92 public: 102 public:
93 JniWebRequest(JNIEnv* env, jobject callbackObject); 103 JniWebRequest(JNIEnv* env, jobject callbackObject);
94 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea derList& requestHeaders) const; 104 AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::Hea derList& requestHeaders) const;
95 105
96 private: 106 private:
97 jobject NewTuple(JNIEnv* env, const std::string& a, const std::string& b) cons t; 107 jobject NewTuple(JNIEnv* env, const std::string& a, const std::string& b) cons t;
98 108
99 const JniGlobalReference<jclass>::Ptr tupleClass; 109 const JniGlobalReference<jclass>::Ptr tupleClass;
100 const JniGlobalReference<jclass>::Ptr serverResponseClass; 110 const JniGlobalReference<jclass>::Ptr serverResponseClass;
101 }; 111 };
102 112
103 #endif /* JNICALLBACKS_H */ 113 #endif /* JNICALLBACKS_H */
OLDNEW
« no previous file with comments | « jni/Application.mk ('k') | jni/JniFilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld