code: function downloadManager() {
    this._controller = null;
    this.downloadState = downloadState;
  
    this._dms = Cc["@mozilla.org/download-manager;1"].
                getService(Ci.nsIDownloadManager);
  }
docs: Constructor