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

Side by Side Diff: src/org/adblockplus/android/ABPEngine.java

Issue 5172657418928128: Determine the frame structure (Closed)
Patch Set: Created Nov. 23, 2013, 12:03 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
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-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 public native void addSubscription(String url); 85 public native void addSubscription(String url);
86 86
87 public native void removeSubscription(String url); 87 public native void removeSubscription(String url);
88 88
89 public native void refreshSubscription(String url); 89 public native void refreshSubscription(String url);
90 90
91 public native void actualizeSubscriptionStatus(String url); 91 public native void actualizeSubscriptionStatus(String url);
92 92
93 public native void setAcceptableAdsEnabled(boolean enabled); 93 public native void setAcceptableAdsEnabled(boolean enabled);
94 94
95 public native boolean matches(String url, String contentType, String documentU rl); 95 public native boolean matches(String url, String contentType, String[] documen tUrls);
96 96
97 public native String[] getSelectorsForDomain(String domain); 97 public native String[] getSelectorsForDomain(String domain);
98 98
99 public native void checkUpdates(); 99 public native void checkUpdates();
100 100
101 private Notification getNotification(String url, String error) 101 private Notification getNotification(String url, String error)
102 { 102 {
103 final PendingIntent emptyIntent = PendingIntent.getActivity(context, 0, new Intent(), 0); 103 final PendingIntent emptyIntent = PendingIntent.getActivity(context, 0, new Intent(), 0);
104 104
105 NotificationCompat.Builder builder = new NotificationCompat.Builder(context) ; 105 NotificationCompat.Builder builder = new NotificationCompat.Builder(context) ;
(...skipping 28 matching lines...) Expand all
134 134
135 Notification notification = builder.getNotification(); 135 Notification notification = builder.getNotification();
136 return notification; 136 return notification;
137 } 137 }
138 138
139 static 139 static
140 { 140 {
141 System.loadLibrary("abpEngine"); 141 System.loadLibrary("abpEngine");
142 } 142 }
143 } 143 }
OLDNEW

Powered by Google App Engine
This is Rietveld