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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 let onShutdown = { | 43 let onShutdown = { |
44 done: false, | 44 done: false, |
45 add() {}, | 45 add() {}, |
46 remove() {} | 46 remove() {} |
47 }; | 47 }; |
48 | 48 |
49 // | 49 // |
50 // XPCOM emulation | 50 // XPCOM emulation |
51 // | 51 // |
52 | 52 |
| 53 function nsIFileURL() {} |
| 54 function nsIHttpChannel() {} |
| 55 |
53 let Components = | 56 let Components = |
54 { | 57 { |
55 interfaces: | 58 interfaces: |
56 { | 59 { |
57 nsIFile: {DIRECTORY_TYPE: 0}, | 60 nsIFile: {DIRECTORY_TYPE: 0}, |
58 nsIFileURL() {}, | 61 nsIFileURL, |
59 nsIHttpChannel() {}, | 62 nsIHttpChannel, |
60 nsITimer: {TYPE_REPEATING_SLACK: 0}, | 63 nsITimer: {TYPE_REPEATING_SLACK: 0}, |
61 nsIInterfaceRequestor: null, | 64 nsIInterfaceRequestor: null, |
62 nsIChannelEventSink: null | 65 nsIChannelEventSink: null |
63 }, | 66 }, |
64 classes: | 67 classes: |
65 { | 68 { |
66 "@mozilla.org/timer;1": | 69 "@mozilla.org/timer;1": |
67 { | 70 { |
68 createInstance() { return new FakeTimer(); } | 71 createInstance() { return new FakeTimer(); } |
69 }, | 72 }, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 status: -1, | 260 status: -1, |
258 notificationCallbacks: {}, | 261 notificationCallbacks: {}, |
259 loadFlags: 0, | 262 loadFlags: 0, |
260 INHIBIT_CACHING: 0, | 263 INHIBIT_CACHING: 0, |
261 VALIDATE_ALWAYS: 0, | 264 VALIDATE_ALWAYS: 0, |
262 QueryInterface() | 265 QueryInterface() |
263 { | 266 { |
264 return this; | 267 return this; |
265 } | 268 } |
266 }; | 269 }; |
OLD | NEW |