| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // About module implementation | 63 // About module implementation |
| 64 // | 64 // |
| 65 | 65 |
| 66 getURIFlags: function(uri) | 66 getURIFlags: function(uri) |
| 67 { | 67 { |
| 68 return ("HIDE_FROM_ABOUTABOUT" in Ci.nsIAboutModule ? Ci.nsIAboutModule.HIDE
_FROM_ABOUTABOUT : 0); | 68 return ("HIDE_FROM_ABOUTABOUT" in Ci.nsIAboutModule ? Ci.nsIAboutModule.HIDE
_FROM_ABOUTABOUT : 0); |
| 69 }, | 69 }, |
| 70 | 70 |
| 71 newChannel: function(uri) | 71 newChannel: function(uri) |
| 72 { | 72 { |
| 73 let match = /\?(\d+)/.exec(uri.path) | 73 let match = /\?(\d+)/.exec(uri.path); |
| 74 if (!match) | 74 if (!match) |
| 75 throw Cr.NS_ERROR_FAILURE; | 75 throw Cr.NS_ERROR_FAILURE; |
| 76 | 76 |
| 77 return new HitRegistrationChannel(uri, match[1]); | 77 return new HitRegistrationChannel(uri, match[1]); |
| 78 }, | 78 }, |
| 79 | 79 |
| 80 QueryInterface: XPCOMUtils.generateQI([Ci.nsIFactory, Ci.nsIAboutModule]) | 80 QueryInterface: XPCOMUtils.generateQI([Ci.nsIFactory, Ci.nsIAboutModule]) |
| 81 }; | 81 }; |
| 82 AboutHandler.init(); | 82 AboutHandler.init(); |
| 83 | 83 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 { | 155 { |
| 156 throw Cr.NS_ERROR_NOT_IMPLEMENTED; | 156 throw Cr.NS_ERROR_NOT_IMPLEMENTED; |
| 157 }, | 157 }, |
| 158 resume: function() | 158 resume: function() |
| 159 { | 159 { |
| 160 throw Cr.NS_ERROR_NOT_IMPLEMENTED; | 160 throw Cr.NS_ERROR_NOT_IMPLEMENTED; |
| 161 }, | 161 }, |
| 162 | 162 |
| 163 QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest]) | 163 QueryInterface: XPCOMUtils.generateQI([Ci.nsIChannel, Ci.nsIRequest]) |
| 164 }; | 164 }; |
| OLD | NEW |