| OLD | NEW |
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 Subscription.prototype = | 46 Subscription.prototype = |
| 47 { | 47 { |
| 48 /** | 48 /** |
| 49 * Download location of the subscription | 49 * Download location of the subscription |
| 50 * @type {string} | 50 * @type {string} |
| 51 */ | 51 */ |
| 52 url: null, | 52 url: null, |
| 53 | 53 |
| 54 /** | 54 /** |
| 55 * Whether the subscription is trusted. |
| 56 * @type {boolean} |
| 57 */ |
| 58 trusted: false, |
| 59 |
| 60 /** |
| 55 * Filters contained in the filter subscription | 61 * Filters contained in the filter subscription |
| 56 * @type {Filter[]} | 62 * @type {Filter[]} |
| 57 */ | 63 */ |
| 58 filters: null, | 64 filters: null, |
| 59 | 65 |
| 60 _title: null, | 66 _title: null, |
| 61 _fixedTitle: false, | 67 _fixedTitle: false, |
| 62 _disabled: false, | 68 _disabled: false, |
| 63 | 69 |
| 64 /** | 70 /** |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 * @augments Subscription | 241 * @augments Subscription |
| 236 */ | 242 */ |
| 237 function SpecialSubscription(url, title) | 243 function SpecialSubscription(url, title) |
| 238 { | 244 { |
| 239 Subscription.call(this, url, title); | 245 Subscription.call(this, url, title); |
| 240 } | 246 } |
| 241 exports.SpecialSubscription = SpecialSubscription; | 247 exports.SpecialSubscription = SpecialSubscription; |
| 242 | 248 |
| 243 SpecialSubscription.prototype = extend(Subscription, { | 249 SpecialSubscription.prototype = extend(Subscription, { |
| 244 /** | 250 /** |
| 251 * @see Subscription.trusted |
| 252 */ |
| 253 trusted: true, |
| 254 |
| 255 /** |
| 245 * Filter types that should be added to this subscription by default | 256 * Filter types that should be added to this subscription by default |
| 246 * (entries should correspond to keys in SpecialSubscription.defaultsMap). | 257 * (entries should correspond to keys in SpecialSubscription.defaultsMap). |
| 247 * @type {string[]} | 258 * @type {string[]} |
| 248 */ | 259 */ |
| 249 defaults: null, | 260 defaults: null, |
| 250 | 261 |
| 251 /** | 262 /** |
| 252 * 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 |
| 253 * @param {Filter} filter filter to be tested | 264 * @param {Filter} filter filter to be tested |
| 254 * @return {boolean} | 265 * @return {boolean} |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 if (this.errors) | 576 if (this.errors) |
| 566 buffer.push("errors=" + this.errors); | 577 buffer.push("errors=" + this.errors); |
| 567 if (this.version) | 578 if (this.version) |
| 568 buffer.push("version=" + this.version); | 579 buffer.push("version=" + this.version); |
| 569 if (this.requiredVersion) | 580 if (this.requiredVersion) |
| 570 buffer.push("requiredVersion=" + this.requiredVersion); | 581 buffer.push("requiredVersion=" + this.requiredVersion); |
| 571 if (this.downloadCount) | 582 if (this.downloadCount) |
| 572 buffer.push("downloadCount=" + this.downloadCount); | 583 buffer.push("downloadCount=" + this.downloadCount); |
| 573 } | 584 } |
| 574 }); | 585 }); |
| OLD | NEW |