B2G/gecko/toolkit/components/social/SocialService.jsm
/**
 * The SocialProvider object represents a social provider, and allows
 * access to its FrameWorker (if it has one).
 *
 * @constructor
 * @param {jsobj} object representing the manifest file describing this provider
 * @param {bool} whether the provider should be initially enabled (defaults to true)
 */
The SocialProvider object represents a social provider, and allows
access to its FrameWorker (if it has one).

@constructor
@param {jsobj} object representing the manifest file describing this provider
@param {bool} whether the provider should be initially enabled (defaults to true)
The SocialProvider object represents a social provider and allows access to its FrameWorker ( if it has one ) . @constructor @param { jsobj } object representing the manifest file describing this provider @param { bool } whether the provider should be initially enabled ( defaults to true )
function SocialProvider(input, enabled) {
  if (!input.name)
    throw new Error("SocialProvider must be passed a name");
  if (!input.origin)
    throw new Error("SocialProvider must be passed an origin");
  this.name = input.name;
  this.iconURL = input.iconURL;
  this.workerURL = input.workerURL;
  this.sidebarURL = input.sidebarURL;
  this.origin = input.origin;
  this.ambientNotificationIcons = {};
  this._enabled = !(enabled == false);
  if (this._enabled)
    this._activate();
}
function SocialProvider ( input , enabled ) { if ( ! input . name ) throw new Error ( "SocialProvider must be passed a name" ) ; if ( ! input . origin ) throw new Error ( "SocialProvider must be passed an origin" ) ; this . name = input . name ; this . iconURL = input . iconURL ; this . workerURL = input . workerURL ; this . sidebarURL = input . sidebarURL ; this . origin = input . origin ; this . ambientNotificationIcons = { } ; this . _enabled = ! ( enabled == false ) ; if ( this . _enabled ) this . _activate ( ) ; }
The SocialProvider object represents a social provider, and allows
 access to its FrameWorker (if it has one).
The SocialProvider object represents a social provider and allows access to its FrameWorker ( if it has one ) .
// If enabled is |undefined|, default to true.