Name Description Size
content
FeedConverter.js "; const FEEDHANDLER_URI = "about:feeds"; const PREF_SELECTED_APP = "browser.feeds.handlers.application"; const PREF_SELECTED_WEB = "browser.feeds.handlers.webservice"; const PREF_SELECTED_ACTION = "browser.feeds.handler"; const PREF_SELECTED_READER = "browser.feeds.handler.default"; const PREF_VIDEO_SELECTED_APP = "browser.videoFeeds.handlers.application"; const PREF_VIDEO_SELECTED_WEB = "browser.videoFeeds.handlers.webservice"; const PREF_VIDEO_SELECTED_ACTION = "browser.videoFeeds.handler"; const PREF_VIDEO_SELECTED_READER = "browser.videoFeeds.handler.default"; const PREF_AUDIO_SELECTED_APP = "browser.audioFeeds.handlers.application"; const PREF_AUDIO_SELECTED_WEB = "browser.audioFeeds.handlers.webservice"; const PREF_AUDIO_SELECTED_ACTION = "browser.audioFeeds.handler"; const PREF_AUDIO_SELECTED_READER = "browser.audioFeeds.handler.default"; function getPrefAppForType(t) { switch (t) { case Ci.nsIFeed.TYPE_VIDEO: return PREF_VIDEO_SELECTED_APP; case Ci.nsIFeed.TYPE_AUDIO: return PREF_AUDIO_SELECTED_APP; default: return PREF_SELECTED_APP; } } function getPrefWebForType(t) { switch (t) { case Ci.nsIFeed.TYPE_VIDEO: return PREF_VIDEO_SELECTED_WEB; case Ci.nsIFeed.TYPE_AUDIO: return PREF_AUDIO_SELECTED_WEB; default: return PREF_SELECTED_WEB; } } function getPrefActionForType(t) { switch (t) { case Ci.nsIFeed.TYPE_VIDEO: return PREF_VIDEO_SELECTED_ACTION; case Ci.nsIFeed.TYPE_AUDIO: return PREF_AUDIO_SELECTED_ACTION; default: return PREF_SELECTED_ACTION; } } function getPrefReaderForType(t) { switch (t) { case Ci.nsIFeed.TYPE_VIDEO: return PREF_VIDEO_SELECTED_READER; case Ci.nsIFeed.TYPE_AUDIO: return PREF_AUDIO_SELECTED_READER; default: return PREF_SELECTED_READER; } } function LOG(str) { if (Services.prefs.getBoolPref("feeds.log", false)) dump("*** Feeds: " + str + "\n"); } function FeedConverter() { } FeedConverter.prototype = { /** This is the downloaded text data for the feed. 15471
FeedWriter.js Wrapper function for nsIIOService::newURI. @param aURLSpec The URL string from which to create an nsIURI. @returns an nsIURI object, or null if the creation of the URI failed. 42159
jar.mn 488
moz.build 645
nsFeedSniffer.cpp @return the first occurrence of a character within a string buffer, or nullptr if not found 11253
nsFeedSniffer.h 1175
nsIFeedResultService.idl nsIFeedResultService provides a globally-accessible object for retrieving the results of feed processing. 2175
nsIWebContentConverterRegistrar.idl The content type handled by the handler 4172
SuiteFeeds.manifest 1054
WebContentConverter.js "; const PREF_CONTENTHANDLERS_AUTO = "browser.contentHandlers.auto."; const PREF_CONTENTHANDLERS_BRANCH = "browser.contentHandlers.types."; const PREF_SELECTED_WEB = "browser.feeds.handlers.webservice"; const PREF_SELECTED_ACTION = "browser.feeds.handler"; const PREF_SELECTED_READER = "browser.feeds.handler.default"; const PREF_HANDLER_EXTERNAL_PREFIX = "network.protocol-handler.external"; const PREF_ALLOW_DIFFERENT_HOST = "gecko.handlerService.allowRegisterFromDifferentHost"; const STRING_BUNDLE_URI = "chrome://communicator/locale/feeds/subscribe.properties"; const NS_ERROR_MODULE_DOM = 0x80530000; const NS_ERROR_DOM_SYNTAX_ERR = NS_ERROR_MODULE_DOM + 12; function LOG(str) { try { if (Services.prefs.getBoolPref("feeds.log")) dump("*** Feeds: " + str + "\n"); } catch (ex) { } } function getNotificationBox(aWindow) { return aWindow.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIWebNavigation) .QueryInterface(Ci.nsIDocShell) .chromeEventHandler.parentNode.wrappedJSObject; } function WebContentConverter() { } WebContentConverter.prototype = { convert: function convert() { }, asyncConvertData: function asyncConvertData() { }, onDataAvailable: function onDataAvailable() { }, onStopRequest: function onStopRequest() { }, onStartRequest: function onStartRequest(request, context) { var wccr = Cc[WCCR_CONTRACTID] .getService(Ci.nsIWebContentConverterService); wccr.loadPreferredHandler(request); }, QueryInterface: XPCOMUtils.generateQI( [Ci.nsIStreamConverter, Ci.nsIStreamListener]) }; var WebContentConverterFactory = { createInstance: function createInstance(outer, iid) { if (outer != null) throw Cr.NS_ERROR_NO_AGGREGATION; return new WebContentConverter().QueryInterface(iid); }, QueryInterface: XPCOMUtils.generateQI( [Ci.nsIFactory]) }; function ServiceInfo(contentType, uri, name) { this._contentType = contentType; this._uri = uri; this._name = name; } ServiceInfo.prototype = { /** See nsIHandlerApp 28275