sbMediaContentListener.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 
function sbMediaContentListener ()
 

Variables

const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cr = Components.results
 
const NS_BINDING_ABORTED = 0x804b0002
 
const DESCRIPTION = "sbMediaContentListener"
 
const CID = "2803c9e8-b0b6-4dfe-8333-53430128f7e7"
 
const CONTRACTID = "@songbirdnest.com/contentlistener/media;1"
 
const CONTRACTID_ARRAY = "@songbirdnest.com/moz/xpcom/threadsafe-array;1"
 
const CONTRACTID_LIBRARYMANAGER = "@songbirdnest.com/Songbird/library/Manager;1"
 
const CONTRACTID_OBSERVERSERVICE = "@mozilla.org/observer-service;1"
 
const CONTRACTID_PREFSERVICE = "@mozilla.org/preferences-service;1"
 
const CATEGORY_CONTENT_LISTENER = "external-uricontentlisteners"
 
const PREF_WEBLIBRARY_GUID = "songbird.library.web"
 
const TYPE_MAYBE_MEDIA = "application/vnd.songbird.maybe.media"
 
const TYPE_MAYBE_PLAYLIST = "application/vnd.songbird.maybe.playlist"
 
sbMediaContentListener prototype
 

Function Documentation

Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function sbMediaContentListener ( )

An implementation of nsIURIContentListener that prevents audio and video files from being downloaded through the Download Manager.

This component works hand-in-hand with the sbMediaSniffer component. When a URI is first resolved the content sniffer is called to override the MIME type of files that we recognize as media files. Thereafter no other content listeners will be able to support the MIME type except for this component.

Definition at line 66 of file sbMediaContentListener.js.

Variable Documentation

const CATEGORY_CONTENT_LISTENER = "external-uricontentlisteners"

Definition at line 43 of file sbMediaContentListener.js.

const Cc = Components.classes

Definition at line 27 of file sbMediaContentListener.js.

Definition at line 28 of file sbMediaContentListener.js.

const CID = "2803c9e8-b0b6-4dfe-8333-53430128f7e7"

Definition at line 35 of file sbMediaContentListener.js.

const CONTRACTID = "@songbirdnest.com/contentlistener/media;1"

Definition at line 36 of file sbMediaContentListener.js.

const CONTRACTID_ARRAY = "@songbirdnest.com/moz/xpcom/threadsafe-array;1"

Definition at line 38 of file sbMediaContentListener.js.

const CONTRACTID_LIBRARYMANAGER = "@songbirdnest.com/Songbird/library/Manager;1"

Definition at line 39 of file sbMediaContentListener.js.

const CONTRACTID_OBSERVERSERVICE = "@mozilla.org/observer-service;1"

Definition at line 40 of file sbMediaContentListener.js.

const CONTRACTID_PREFSERVICE = "@mozilla.org/preferences-service;1"

Definition at line 41 of file sbMediaContentListener.js.

const Cr = Components.results

Definition at line 29 of file sbMediaContentListener.js.

const DESCRIPTION = "sbMediaContentListener"

Definition at line 34 of file sbMediaContentListener.js.

const NS_BINDING_ABORTED = 0x804b0002

Definition at line 32 of file sbMediaContentListener.js.

const PREF_WEBLIBRARY_GUID = "songbird.library.web"

Definition at line 45 of file sbMediaContentListener.js.

Definition at line 72 of file sbMediaContentListener.js.

const TYPE_MAYBE_MEDIA = "application/vnd.songbird.maybe.media"

Definition at line 47 of file sbMediaContentListener.js.

const TYPE_MAYBE_PLAYLIST = "application/vnd.songbird.maybe.playlist"

Definition at line 48 of file sbMediaContentListener.js.