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

Delta Between Two Patch Sets: lib/subscriptionClasses.js

Issue 29790555: Issue 6671 - Introduce trusted subscriptions (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Left Patch Set: Created May 25, 2018, 6:20 a.m.
Right Patch Set: Make user's own filters trusted Created May 25, 2018, 6:41 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/filterListener.js ('k') | test/filterListener.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 * @augments Subscription 241 * @augments Subscription
242 */ 242 */
243 function SpecialSubscription(url, title) 243 function SpecialSubscription(url, title)
244 { 244 {
245 Subscription.call(this, url, title); 245 Subscription.call(this, url, title);
246 } 246 }
247 exports.SpecialSubscription = SpecialSubscription; 247 exports.SpecialSubscription = SpecialSubscription;
248 248
249 SpecialSubscription.prototype = extend(Subscription, { 249 SpecialSubscription.prototype = extend(Subscription, {
250 /** 250 /**
251 * @see Subscription.trusted
252 */
253 trusted: true,
254
255 /**
251 * Filter types that should be added to this subscription by default 256 * Filter types that should be added to this subscription by default
252 * (entries should correspond to keys in SpecialSubscription.defaultsMap). 257 * (entries should correspond to keys in SpecialSubscription.defaultsMap).
253 * @type {string[]} 258 * @type {string[]}
254 */ 259 */
255 defaults: null, 260 defaults: null,
256 261
257 /** 262 /**
258 * Tests whether a filter should be added to this group by default 263 * Tests whether a filter should be added to this group by default
259 * @param {Filter} filter filter to be tested 264 * @param {Filter} filter filter to be tested
260 * @return {boolean} 265 * @return {boolean}
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 if (this.errors) 576 if (this.errors)
572 buffer.push("errors=" + this.errors); 577 buffer.push("errors=" + this.errors);
573 if (this.version) 578 if (this.version)
574 buffer.push("version=" + this.version); 579 buffer.push("version=" + this.version);
575 if (this.requiredVersion) 580 if (this.requiredVersion)
576 buffer.push("requiredVersion=" + this.requiredVersion); 581 buffer.push("requiredVersion=" + this.requiredVersion);
577 if (this.downloadCount) 582 if (this.downloadCount)
578 buffer.push("downloadCount=" + this.downloadCount); 583 buffer.push("downloadCount=" + this.downloadCount);
579 } 584 }
580 }); 585 });
LEFTRIGHT

Powered by Google App Engine
This is Rietveld