2012-05-21 15:12:37 +04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2006-05-06 01:51:46 +04:00
|
|
|
|
2006-04-18 01:55:45 +04:00
|
|
|
const Cc = Components.classes;
|
|
|
|
const Ci = Components.interfaces;
|
|
|
|
|
2010-06-22 20:59:15 +04:00
|
|
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
|
2011-03-08 06:58:46 +03:00
|
|
|
#include ./content/listmanager.js
|
2006-04-18 01:55:45 +04:00
|
|
|
|
2006-05-20 00:29:24 +04:00
|
|
|
var modScope = this;
|
|
|
|
function Init() {
|
|
|
|
// Pull the library in.
|
|
|
|
var jslib = Cc["@mozilla.org/url-classifier/jslib;1"]
|
|
|
|
.getService().wrappedJSObject;
|
|
|
|
Function.prototype.inherits = jslib.Function.prototype.inherits;
|
|
|
|
modScope.G_Preferences = jslib.G_Preferences;
|
|
|
|
modScope.G_PreferenceObserver = jslib.G_PreferenceObserver;
|
|
|
|
modScope.G_ObserverServiceObserver = jslib.G_ObserverServiceObserver;
|
|
|
|
modScope.G_Debug = jslib.G_Debug;
|
|
|
|
modScope.G_Assert = jslib.G_Assert;
|
|
|
|
modScope.G_debugService = jslib.G_debugService;
|
|
|
|
modScope.G_Alarm = jslib.G_Alarm;
|
|
|
|
modScope.BindToObject = jslib.BindToObject;
|
|
|
|
modScope.PROT_XMLFetcher = jslib.PROT_XMLFetcher;
|
2008-02-27 11:51:02 +03:00
|
|
|
modScope.PROT_UrlCryptoKeyManager = jslib.PROT_UrlCryptoKeyManager;
|
2006-08-24 04:18:01 +04:00
|
|
|
modScope.RequestBackoff = jslib.RequestBackoff;
|
2006-04-18 01:55:45 +04:00
|
|
|
|
2006-05-20 00:29:24 +04:00
|
|
|
// We only need to call Init once.
|
|
|
|
modScope.Init = function() {};
|
2006-04-18 01:55:45 +04:00
|
|
|
}
|
|
|
|
|
2010-06-22 20:59:15 +04:00
|
|
|
function RegistrationData()
|
|
|
|
{
|
2006-04-18 01:55:45 +04:00
|
|
|
}
|
2010-06-22 20:59:15 +04:00
|
|
|
RegistrationData.prototype = {
|
|
|
|
classID: Components.ID("{ca168834-cc00-48f9-b83c-fd018e58cae3}"),
|
|
|
|
_xpcom_factory: {
|
|
|
|
createInstance: function(outer, iid) {
|
|
|
|
if (outer != null)
|
|
|
|
throw Components.results.NS_ERROR_NO_AGGREGATION;
|
|
|
|
Init();
|
|
|
|
return (new PROT_ListManager()).QueryInterface(iid);
|
|
|
|
}
|
|
|
|
},
|
2006-04-18 01:55:45 +04:00
|
|
|
};
|
|
|
|
|
2010-06-22 20:59:15 +04:00
|
|
|
var NSGetFactory = XPCOMUtils.generateNSGetFactory([RegistrationData]);
|