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-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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 delete this.listener; | 128 delete this.listener; |
129 delete this.listenerObj; | 129 delete this.listenerObj; |
130 | 130 |
131 for (let i = activeNotifiers.length - 1; i >= 0; i--) | 131 for (let i = activeNotifiers.length - 1; i >= 0; i--) |
132 if (activeNotifiers[i] == this) | 132 if (activeNotifiers[i] == this) |
133 activeNotifiers.splice(i, 1); | 133 activeNotifiers.splice(i, 1); |
134 }, | 134 }, |
135 | 135 |
136 /** | 136 /** |
137 * Notifies listener about a new request. | 137 * Notifies listener about a new request. |
| 138 * @param {Window} wnd |
| 139 * @param {Node} node |
| 140 * @param {RequestEntry} entry |
138 */ | 141 */ |
139 notifyListener: function(/**Window*/ wnd, /**Node*/ node, /**RequestEntry*/ en
try) | 142 notifyListener: function(wnd, node, entry) |
140 { | 143 { |
141 this.listener.call(this.listenerObj, wnd, node, entry, this.scanComplete); | 144 this.listener.call(this.listenerObj, wnd, node, entry, this.scanComplete); |
142 }, | 145 }, |
143 | 146 |
144 /** | 147 /** |
145 * Number of currently posted scan events (will be 0 when the scan finishes | 148 * Number of currently posted scan events (will be 0 when the scan finishes |
146 * running). | 149 * running). |
147 */ | 150 */ |
148 eventsPosted: 0, | 151 eventsPosted: 0, |
149 | 152 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 if (typeof existingData == "undefined") | 382 if (typeof existingData == "undefined") |
380 { | 383 { |
381 existingData = {}; | 384 existingData = {}; |
382 setEntry(nodeData, node, existingData); | 385 setEntry(nodeData, node, existingData); |
383 } | 386 } |
384 | 387 |
385 // Add this request to the node data | 388 // Add this request to the node data |
386 existingData[this.type + " " + this.location] = this; | 389 existingData[this.type + " " + this.location] = this; |
387 } | 390 } |
388 }; | 391 }; |
OLD | NEW |