Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/main.js

Issue 11175021: Add Notification module (Closed)
Patch Set: Download notifications (changes by Wladimir) Created July 18, 2013, 5:59 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 15 matching lines...) Expand all
26 26
27 TimeLine.enter("Adblock Plus startup"); 27 TimeLine.enter("Adblock Plus startup");
28 registerPublicAPI(); 28 registerPublicAPI();
29 TimeLine.log("Done registering public API"); 29 TimeLine.log("Done registering public API");
30 require("filterListener"); 30 require("filterListener");
31 TimeLine.log("Done loading filter listener"); 31 TimeLine.log("Done loading filter listener");
32 require("contentPolicy"); 32 require("contentPolicy");
33 TimeLine.log("Done loading content policy"); 33 TimeLine.log("Done loading content policy");
34 require("synchronizer"); 34 require("synchronizer");
35 TimeLine.log("Done loading subscription synchronizer"); 35 TimeLine.log("Done loading subscription synchronizer");
36 require("notification");
37 TimeLine.log("Done loading notification downloader");
36 require("sync"); 38 require("sync");
37 TimeLine.log("Done loading sync support"); 39 TimeLine.log("Done loading sync support");
38 require("ui"); 40 require("ui");
39 TimeLine.log("Done loading UI integration code"); 41 TimeLine.log("Done loading UI integration code");
40 TimeLine.leave("Started up"); 42 TimeLine.leave("Started up");
41 43
42 function registerPublicAPI() 44 function registerPublicAPI()
43 { 45 {
44 let {addonRoot} = require("info"); 46 let {addonRoot} = require("info");
45 47
(...skipping 16 matching lines...) Expand all
62 64
63 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 65 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
64 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory); 66 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory);
65 67
66 onShutdown.add(function() 68 onShutdown.add(function()
67 { 69 {
68 registrar.unregisterFactory(classID, factory); 70 registrar.unregisterFactory(classID, factory);
69 Cu.unload(uri.spec); 71 Cu.unload(uri.spec);
70 }); 72 });
71 } 73 }
OLDNEW
« no previous file with comments | « defaults/prefs.js ('k') | lib/notification.js » ('j') | lib/notification.js » ('J')

Powered by Google App Engine
This is Rietveld