1 const Cc = Components.classes;
2 const Ci = Components.interfaces;
6 Function.prototype.inherits =
function(parentCtor) {
7 var tempCtor =
function(){};
8 tempCtor.prototype = parentCtor.prototype;
9 this.superClass_ = parentCtor.prototype;
13 #include ../content/application.js
14 #include ../content/globalstore.js
15 #include ../content/list-warden.js
16 #include ../content/phishing-warden.js
17 #include ../content/malware-warden.js
21 var jslib =
Cc[
"@mozilla.org/url-classifier/jslib;1"]
22 .getService().wrappedJSObject;
23 modScope.G_Debug = jslib.G_Debug;
24 modScope.G_Assert = jslib.G_Assert;
25 modScope.G_Alarm = jslib.G_Alarm;
26 modScope.G_ConditionalAlarm = jslib.G_ConditionalAlarm;
27 modScope.G_ObserverWrapper = jslib.G_ObserverWrapper;
28 modScope.G_Preferences = jslib.G_Preferences;
29 modScope.PROT_XMLFetcher = jslib.PROT_XMLFetcher;
30 modScope.BindToObject = jslib.BindToObject;
31 modScope.G_Protocol4Parser = jslib.G_Protocol4Parser;
32 modScope.PROT_UrlCrypto = jslib.PROT_UrlCrypto;
33 modScope.RequestBackoff = jslib.RequestBackoff;
36 modScope.Init =
function() {};
42 this.cid = Components.ID(
"{c64d0bcb-8270-4ca7-a0b3-3380c8ffecb5}");
43 this.progid =
"@mozilla.org/safebrowsing/application;1";
49 throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN;
51 compMgr = compMgr.QueryInterface(
Ci.nsIComponentRegistrar);
52 compMgr.registerFactoryLocation(this.cid,
53 "Safebrowsing Application Module",
61 if (!cid.equals(
this.cid))
62 throw Components.results.NS_ERROR_NO_INTERFACE;
63 if (!iid.equals(
Ci.nsIFactory))
64 throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
76 throw Components.results.NS_ERROR_NO_AGGREGATION;
function PROT_Application()
function NSGetModule(compMgr, fileSpec)
function SafebrowsingApplicationMod()