| 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 13 matching lines...) Expand all  Loading... | 
| 24 | 24 | 
| 25 bootstrapChildProcesses(); | 25 bootstrapChildProcesses(); | 
| 26 registerPublicAPI(); | 26 registerPublicAPI(); | 
| 27 require("filterListener"); | 27 require("filterListener"); | 
| 28 require("contentPolicy"); | 28 require("contentPolicy"); | 
| 29 require("synchronizer"); | 29 require("synchronizer"); | 
| 30 require("notification"); | 30 require("notification"); | 
| 31 require("sync"); | 31 require("sync"); | 
| 32 require("messageResponder"); | 32 require("messageResponder"); | 
| 33 require("ui"); | 33 require("ui"); | 
|  | 34 require("objectTabs"); | 
| 34 | 35 | 
| 35 function bootstrapChildProcesses() | 36 function bootstrapChildProcesses() | 
| 36 { | 37 { | 
| 37   let info = require("info"); | 38   let info = require("info"); | 
| 38 | 39 | 
| 39   let processScript = info.addonRoot + "lib/child/bootstrap.js?" + Math.random()
    ; | 40   let processScript = info.addonRoot + "lib/child/bootstrap.js?" + Math.random()
    ; | 
| 40   let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] | 41   let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] | 
| 41                          .getService(Ci.nsIProcessScriptLoader) | 42                          .getService(Ci.nsIProcessScriptLoader) | 
| 42                          .QueryInterface(Ci.nsIMessageBroadcaster); | 43                          .QueryInterface(Ci.nsIMessageBroadcaster); | 
| 43   messageManager.loadProcessScript(processScript, true); | 44   messageManager.loadProcessScript(processScript, true); | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 72 | 73 | 
| 73   let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 74   let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 
| 74   registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, 
    factory); | 75   registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, 
    factory); | 
| 75 | 76 | 
| 76   onShutdown.add(function() | 77   onShutdown.add(function() | 
| 77   { | 78   { | 
| 78     registrar.unregisterFactory(classID, factory); | 79     registrar.unregisterFactory(classID, factory); | 
| 79     Cu.unload(uri.spec); | 80     Cu.unload(uri.spec); | 
| 80   }); | 81   }); | 
| 81 } | 82 } | 
| OLD | NEW | 
|---|