michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: // We wastefully reload the same JS files across components. This puts all michael@0: // the common JS files used by safebrowsing and url-classifier into a michael@0: // single component. michael@0: michael@0: const Cc = Components.classes; michael@0: const Ci = Components.interfaces; michael@0: const G_GDEBUG = false; michael@0: michael@0: Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); michael@0: michael@0: #include ./content/moz/lang.js michael@0: #include ./content/moz/preferences.js michael@0: #include ./content/moz/debug.js michael@0: #include ./content/moz/alarm.js michael@0: #include ./content/moz/cryptohasher.js michael@0: #include ./content/moz/observer.js michael@0: #include ./content/moz/protocol4.js michael@0: michael@0: #include ./content/request-backoff.js michael@0: #include ./content/xml-fetcher.js michael@0: michael@0: // Expose this whole component. michael@0: var lib = this; michael@0: michael@0: function UrlClassifierLib() { michael@0: this.wrappedJSObject = lib; michael@0: } michael@0: UrlClassifierLib.prototype.classID = Components.ID("{26a4a019-2827-4a89-a85c-5931a678823a}"); michael@0: UrlClassifierLib.prototype.QueryInterface = XPCOMUtils.generateQI([]); michael@0: michael@0: this.NSGetFactory = XPCOMUtils.generateNSGetFactory([UrlClassifierLib]);