| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
| 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
| 4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @fileOverview Starts up Adblock Plus | 8 * @fileOverview Starts up Adblock Plus |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | 11 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
| 12 Cu.import("resource://gre/modules/Services.jsm"); | 12 Cu.import("resource://gre/modules/Services.jsm"); |
| 13 | 13 |
| 14 let {TimeLine} = require("timeline"); | 14 let {TimeLine} = require("timeline"); |
| 15 require("typoFixer"); |
| 15 | 16 |
| 16 TimeLine.enter("Adblock Plus startup"); | 17 TimeLine.enter("Adblock Plus startup"); |
| 17 registerPublicAPI(); | 18 registerPublicAPI(); |
| 18 TimeLine.log("Done registering public API"); | 19 TimeLine.log("Done registering public API"); |
| 19 require("filterListener"); | 20 require("filterListener"); |
| 20 TimeLine.log("Done loading filter listener"); | 21 TimeLine.log("Done loading filter listener"); |
| 21 require("contentPolicy"); | 22 require("contentPolicy"); |
| 22 TimeLine.log("Done loading content policy"); | 23 TimeLine.log("Done loading content policy"); |
| 23 require("synchronizer"); | 24 require("synchronizer"); |
| 24 TimeLine.log("Done loading subscription synchronizer"); | 25 TimeLine.log("Done loading subscription synchronizer"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 51 | 52 |
| 52 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 53 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); |
| 53 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID,
factory); | 54 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID,
factory); |
| 54 | 55 |
| 55 onShutdown.add(function() | 56 onShutdown.add(function() |
| 56 { | 57 { |
| 57 registrar.unregisterFactory(classID, factory); | 58 registrar.unregisterFactory(classID, factory); |
| 58 Cu.unload(uri.spec); | 59 Cu.unload(uri.spec); |
| 59 }); | 60 }); |
| 60 } | 61 } |
| OLD | NEW |