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

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/android/Subscription.java

Issue 29361445: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: Created Nov. 1, 2016, 12:14 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/src/org/adblockplus/libadblockplus/android/Subscription.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingWebRequest.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/Subscription.java
similarity index 71%
copy from libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingWebRequest.java
copy to libadblockplus-android/src/org/adblockplus/libadblockplus/android/Subscription.java
index dcafa5bdab4e5ab0339369bb78f36a8f41727e5e..ecad4287f7d4d04b4c2b7af2b2398bf6945e8713 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingWebRequest.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/Subscription.java
@@ -15,15 +15,16 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
+package org.adblockplus.libadblockplus.android;
-import java.util.List;
+import java.io.Serializable;
-public class ThrowingWebRequest extends WebRequest
+public class Subscription implements Serializable
{
- @Override
- public ServerResponse httpGET(String url, List<HeaderEntry> headers)
- {
- throw new RuntimeException("Unexpected GET: " + url);
- }
+ public String title;
+ public String specialization;
+ public String url;
+ public String homepage;
+ public String[] prefixes;
+ public String author;
}

Powered by Google App Engine
This is Rietveld