| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <http://adblockplus.org/>, | 2  * This file is part of Adblock Plus <http://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2014 Eyeo GmbH | 3  * Copyright (C) 2006-2014 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 10 matching lines...) Expand all  Loading... | 
| 21 | 21 | 
| 22 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | 22 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | 
| 23 Cu.import("resource://gre/modules/Services.jsm"); | 23 Cu.import("resource://gre/modules/Services.jsm"); | 
| 24 | 24 | 
| 25 registerPublicAPI(); | 25 registerPublicAPI(); | 
| 26 require("filterListener"); | 26 require("filterListener"); | 
| 27 require("contentPolicy"); | 27 require("contentPolicy"); | 
| 28 require("synchronizer"); | 28 require("synchronizer"); | 
| 29 require("notification"); | 29 require("notification"); | 
| 30 require("sync"); | 30 require("sync"); | 
|  | 31 require("messageResponder"); | 
| 31 require("ui"); | 32 require("ui"); | 
| 32 | 33 | 
| 33 function registerPublicAPI() | 34 function registerPublicAPI() | 
| 34 { | 35 { | 
| 35   let {addonRoot} = require("info"); | 36   let {addonRoot} = require("info"); | 
| 36 | 37 | 
| 37   let uri = Services.io.newURI(addonRoot + "lib/Public.jsm", null, null); | 38   let uri = Services.io.newURI(addonRoot + "lib/Public.jsm", null, null); | 
| 38   if (uri instanceof Ci.nsIMutable) | 39   if (uri instanceof Ci.nsIMutable) | 
| 39     uri.mutable = false; | 40     uri.mutable = false; | 
| 40 | 41 | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 53 | 54 | 
| 54   let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 55   let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 
| 55   registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, 
    factory); | 56   registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, 
    factory); | 
| 56 | 57 | 
| 57   onShutdown.add(function() | 58   onShutdown.add(function() | 
| 58   { | 59   { | 
| 59     registrar.unregisterFactory(classID, factory); | 60     registrar.unregisterFactory(classID, factory); | 
| 60     Cu.unload(uri.spec); | 61     Cu.unload(uri.spec); | 
| 61   }); | 62   }); | 
| 62 } | 63 } | 
| OLD | NEW | 
|---|