B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Initialises this install to be a download from a remote url.
   *
   * @param  aCallback
   *         The callback to pass the initialised AddonInstall to
   * @param  aName
   *         An optional name for the add-on
   * @param  aType
   *         An optional type for the add-on
   * @param  aIcons
   *         Optional icons for the add-on
   * @param  aVersion
   *         An optional version for the add-on
   */
Initialises this install to be a download from a remote url.
Initialises this install to be a download from a remote url .
function AI_initAvailableDownload(aName, aType, aIcons, aVersion, aCallback) {
    this.state = AddonManager.STATE_AVAILABLE;
    this.name = aName;
    this.type = aType;
    this.version = aVersion;
    this.icons = aIcons;
    this.progress = 0;
    this.maxProgress = -1;
    XPIProvider.installs.push(this);
    AddonManagerPrivate.callInstallListeners("onNewInstall", this.listeners,
                                             this.wrapper);
    aCallback(this);
  }
function AI_initAvailableDownload ( aName , aType , aIcons , aVersion , aCallback ) { this . state = AddonManager . STATE_AVAILABLE ; this . name = aName ; this . type = aType ; this . version = aVersion ; this . icons = aIcons ; this . progress = 0 ; this . maxProgress = - 1 ; XPIProvider . installs . push ( this ) ; AddonManagerPrivate . callInstallListeners ( "onNewInstall" , this . listeners , this . wrapper ) ; aCallback ( this ) ; }
Initialises this install to be a download from a remote url.
Initialises this install to be a download from a remote url .