FeedConverter.js File Reference
#include <GenericFactory>
Include dependency graph for FeedConverter.js:

Go to the source code of this file.

Functions

function LOG (str)
 
function getPrefAppForType (t)
 
function getPrefWebForType (t)
 
function getPrefActionForType (t)
 
function getPrefReaderForType (t)
 
function safeGetCharPref (pref, defaultValue)
 
function FeedConverter ()
 
function FeedProtocolHandler (scheme)
 
function NSGetModule (cm, file)
 

Variables

const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cr = Components.results
 
const FC_CLASSID = Components.ID("{229fa115-9412-4d32-baf3-2fc407f76fb1}")
 
const FC_CLASSNAME = "Feed Stream Converter"
 
const FS_CLASSID = Components.ID("{2376201c-bbc6-472f-9b62-7548040a61c6}")
 
const FS_CLASSNAME = "Feed Result Service"
 
const FS_CONTRACTID = "@mozilla.org/browser/feeds/result-service;1"
 
const FPH_CONTRACTID = "@mozilla.org/network/protocol;1?name=feed"
 
const FPH_CLASSID = Components.ID("{4f91ef2e-57ba-472e-ab7a-b4999e42d6c0}")
 
const FPH_CLASSNAME = "Feed Protocol Handler"
 
const PCPH_CONTRACTID = "@mozilla.org/network/protocol;1?name=pcast"
 
const PCPH_CLASSID = Components.ID("{1c31ed79-accd-4b94-b517-06e0c81999d5}")
 
const PCPH_CLASSNAME = "Podcast Protocol Handler"
 
const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed"
 
const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed"
 
const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed"
 
const TYPE_ANY = "*/*"
 
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"
 
FeedConverter prototype
 
var FeedConverterFactory
 
var FeedResultService
 
var Module
 

Function Documentation

function FeedConverter ( )

Definition at line 146 of file FeedConverter.js.

function FeedProtocolHandler (   scheme)

A protocol handler that attempts to deal with the variant forms of feed: URIs that are actually either http or https.

Definition at line 535 of file FeedConverter.js.

Here is the call graph for this function:

function getPrefActionForType (   t)

Definition at line 108 of file FeedConverter.js.

function getPrefAppForType (   t)

Definition at line 82 of file FeedConverter.js.

function getPrefReaderForType (   t)

Definition at line 121 of file FeedConverter.js.

function getPrefWebForType (   t)

Definition at line 95 of file FeedConverter.js.

function LOG (   str)

Definition at line 44 of file FeedConverter.js.

function NSGetModule (   cm,
  file 
)

Definition at line 683 of file FeedConverter.js.

function safeGetCharPref (   pref,
  defaultValue 
)

Definition at line 134 of file FeedConverter.js.

Here is the call graph for this function:

Variable Documentation

const Cc = Components.classes

Definition at line 40 of file FeedConverter.js.

Definition at line 41 of file FeedConverter.js.

const Cr = Components.results

Definition at line 42 of file FeedConverter.js.

const FC_CLASSID = Components.ID("{229fa115-9412-4d32-baf3-2fc407f76fb1}")

Definition at line 48 of file FeedConverter.js.

const FC_CLASSNAME = "Feed Stream Converter"

Definition at line 49 of file FeedConverter.js.

var FeedConverterFactory
Initial value:
= {
createInstance: function FS_createInstance(outer, iid) {
if (outer != null)
throw Cr.NS_ERROR_NO_AGGREGATION;
return new FeedConverter().QueryInterface(iid);
},
QueryInterface: function FS_QueryInterface(iid) {
if (iid.equals(Ci.nsIFactory) ||
iid.equals(Ci.nsISupports))
return this;
throw Cr.NS_ERROR_NO_INTERFACE;
},
}
const Cr
sidebarFactory createInstance
Definition: nsSidebar.js:351
sbOSDControlService prototype QueryInterface
const Ci
return null
Definition: FeedWriter.js:1143
function FeedConverter()

Definition at line 369 of file FeedConverter.js.

const FEEDHANDLER_URI = "about:feeds"

Definition at line 65 of file FeedConverter.js.

var FeedResultService

Keeps parsed FeedResults around for use elsewhere in the UI after the stream converter completes.

Definition at line 388 of file FeedConverter.js.

const FPH_CLASSID = Components.ID("{4f91ef2e-57ba-472e-ab7a-b4999e42d6c0}")

Definition at line 54 of file FeedConverter.js.

const FPH_CLASSNAME = "Feed Protocol Handler"

Definition at line 55 of file FeedConverter.js.

const FPH_CONTRACTID = "@mozilla.org/network/protocol;1?name=feed"

Definition at line 53 of file FeedConverter.js.

const FS_CLASSID = Components.ID("{2376201c-bbc6-472f-9b62-7548040a61c6}")

Definition at line 50 of file FeedConverter.js.

const FS_CLASSNAME = "Feed Result Service"

Definition at line 51 of file FeedConverter.js.

const FS_CONTRACTID = "@mozilla.org/browser/feeds/result-service;1"

Definition at line 52 of file FeedConverter.js.

var Module

Definition at line 619 of file FeedConverter.js.

const PCPH_CLASSID = Components.ID("{1c31ed79-accd-4b94-b517-06e0c81999d5}")

Definition at line 57 of file FeedConverter.js.

const PCPH_CLASSNAME = "Podcast Protocol Handler"

Definition at line 58 of file FeedConverter.js.

const PCPH_CONTRACTID = "@mozilla.org/network/protocol;1?name=pcast"

Definition at line 56 of file FeedConverter.js.

const PREF_AUDIO_SELECTED_ACTION = "browser.audioFeeds.handler"

Definition at line 79 of file FeedConverter.js.

const PREF_AUDIO_SELECTED_APP = "browser.audioFeeds.handlers.application"

Definition at line 77 of file FeedConverter.js.

const PREF_AUDIO_SELECTED_READER = "browser.audioFeeds.handler.default"

Definition at line 80 of file FeedConverter.js.

const PREF_AUDIO_SELECTED_WEB = "browser.audioFeeds.handlers.webservice"

Definition at line 78 of file FeedConverter.js.

const PREF_SELECTED_ACTION = "browser.feeds.handler"

Definition at line 69 of file FeedConverter.js.

const PREF_SELECTED_APP = "browser.feeds.handlers.application"

Definition at line 67 of file FeedConverter.js.

const PREF_SELECTED_READER = "browser.feeds.handler.default"

Definition at line 70 of file FeedConverter.js.

const PREF_SELECTED_WEB = "browser.feeds.handlers.webservice"

Definition at line 68 of file FeedConverter.js.

const PREF_VIDEO_SELECTED_ACTION = "browser.videoFeeds.handler"

Definition at line 74 of file FeedConverter.js.

const PREF_VIDEO_SELECTED_APP = "browser.videoFeeds.handlers.application"

Definition at line 72 of file FeedConverter.js.

const PREF_VIDEO_SELECTED_READER = "browser.videoFeeds.handler.default"

Definition at line 75 of file FeedConverter.js.

const PREF_VIDEO_SELECTED_WEB = "browser.videoFeeds.handlers.webservice"

Definition at line 73 of file FeedConverter.js.

Definition at line 148 of file FeedConverter.js.

const TYPE_ANY = "*/*"

Definition at line 63 of file FeedConverter.js.

const TYPE_MAYBE_AUDIO_FEED = "application/vnd.mozilla.maybe.audio.feed"

Definition at line 62 of file FeedConverter.js.

const TYPE_MAYBE_FEED = "application/vnd.mozilla.maybe.feed"

Definition at line 60 of file FeedConverter.js.

const TYPE_MAYBE_VIDEO_FEED = "application/vnd.mozilla.maybe.video.feed"

Definition at line 61 of file FeedConverter.js.