sbAboutRedirector.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 
function doPostRegister (aCompMgr, aFile, aComponents)
 
function sbAboutRedirector ()
 
function NSGetModule (compMgr, fileSpec)
 

Variables

const PAGES
 
const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cr = Components.results
 
const DESCRIPTION = "Songbird about: protocol redirector"
 
const CID = "42631c40-1cbe-4f3a-b859-7936e542130f"
 
const CONTRACTID = "@songbirdnest.com/aboutRedirector"
 
const PROTOCOL_PREFIX = "@mozilla.org/network/protocol/about;1?what="
 
sbAboutRedirector prototype
 

Function Documentation

function doPostRegister (   aCompMgr,
  aFile,
  aComponents 
)

Definition at line 45 of file sbAboutRedirector.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function NSGetModule (   compMgr,
  fileSpec 
)

Definition at line 83 of file sbAboutRedirector.js.

Here is the call graph for this function:

function sbAboutRedirector ( )

Definition at line 57 of file sbAboutRedirector.js.

Here is the caller graph for this function:

Variable Documentation

const Cc = Components.classes

Definition at line 33 of file sbAboutRedirector.js.

Definition at line 34 of file sbAboutRedirector.js.

const CID = "42631c40-1cbe-4f3a-b859-7936e542130f"

Definition at line 38 of file sbAboutRedirector.js.

const CONTRACTID = "@songbirdnest.com/aboutRedirector"

Definition at line 39 of file sbAboutRedirector.js.

const Cr = Components.results

Definition at line 35 of file sbAboutRedirector.js.

const DESCRIPTION = "Songbird about: protocol redirector"

Definition at line 37 of file sbAboutRedirector.js.

const PAGES
Initial value:
= {
"keyboard-help": "chrome://songbird/content/html/keyboardHelp.xhtml"
}

Definition at line 29 of file sbAboutRedirector.js.

const PROTOCOL_PREFIX = "@mozilla.org/network/protocol/about;1?what="

Definition at line 43 of file sbAboutRedirector.js.

sbAboutRedirector prototype
Initial value:
= {
classID: Components.ID(CID),
newChannel: function(uri) {
if (!(uri.path in PAGES)) {
throw Components.Exception("URI " + uri.spec + " not supported",
Components.results.NS_ERROR_UNEXPECTED);
}
var ios = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService);
var childURI = ios.newURI(PAGES[uri.path], null, null);
var channel = ios.newChannelFromURI(childURI);
channel.originalURI = uri;
return channel;
},
getURIFlags: function(uri) {
return Ci.nsIAboutModule.ALLOW_SCRIPT
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule])
}
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
const Ci
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
const PAGES
const Cc
getService(Ci.sbIFaceplateManager)
const DESCRIPTION
return null
Definition: FeedWriter.js:1143
var uri
Definition: FeedWriter.js:1135
sbDeviceFirmwareAutoCheckForUpdate prototype classID
const CONTRACTID
var ios
Definition: head_feeds.js:5
const CID

Definition at line 58 of file sbAboutRedirector.js.