2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIComponentManager interface.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2012-06-05 19:08:30 -07:00
|
|
|
interface nsIFile;
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIFactory;
|
|
|
|
|
2011-07-29 02:20:47 -07:00
|
|
|
[scriptable, uuid(1d940426-5fe5-42c3-84ae-a300f2d9ebd5)]
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIComponentManager : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* getClassObject
|
|
|
|
*
|
|
|
|
* Returns the factory object that can be used to create instances of
|
|
|
|
* CID aClass
|
|
|
|
*
|
|
|
|
* @param aClass The classid of the factory that is being requested
|
|
|
|
*/
|
|
|
|
void getClassObject(in nsCIDRef aClass,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* getClassObjectByContractID
|
|
|
|
*
|
|
|
|
* Returns the factory object that can be used to create instances of
|
|
|
|
* CID aClass
|
|
|
|
*
|
|
|
|
* @param aClass The classid of the factory that is being requested
|
|
|
|
*/
|
|
|
|
void getClassObjectByContractID(in string aContractID,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* createInstance
|
|
|
|
*
|
|
|
|
* Create an instance of the CID aClass and return the interface aIID.
|
|
|
|
*
|
|
|
|
* @param aClass : ClassID of object instance requested
|
|
|
|
* @param aDelegate : Used for aggregation
|
|
|
|
* @param aIID : IID of interface requested
|
|
|
|
*/
|
|
|
|
void createInstance(in nsCIDRef aClass,
|
|
|
|
in nsISupports aDelegate,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* createInstanceByContractID
|
|
|
|
*
|
|
|
|
* Create an instance of the CID that implements aContractID and return the
|
|
|
|
* interface aIID.
|
|
|
|
*
|
|
|
|
* @param aContractID : aContractID of object instance requested
|
|
|
|
* @param aDelegate : Used for aggregation
|
|
|
|
* @param aIID : IID of interface requested
|
|
|
|
*/
|
|
|
|
void createInstanceByContractID(in string aContractID,
|
|
|
|
in nsISupports aDelegate,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
2011-07-29 02:20:47 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* addBootstrappedManifestLocation
|
|
|
|
*
|
|
|
|
* Adds a bootstrapped manifest location on runtime.
|
|
|
|
*
|
|
|
|
* @param aLocation : A directory where chrome.manifest resides,
|
|
|
|
* or an XPI with it on the root.
|
|
|
|
*/
|
2012-06-05 19:08:30 -07:00
|
|
|
void addBootstrappedManifestLocation(in nsIFile aLocation);
|
2011-07-29 02:20:47 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* removeBootstrappedManifestLocation
|
|
|
|
*
|
|
|
|
* Removes a bootstrapped manifest location on runtime.
|
|
|
|
*
|
|
|
|
* @param aLocation : A directory where chrome.manifest resides,
|
|
|
|
* or an XPI with it on the root.
|
|
|
|
*/
|
2012-06-05 19:08:30 -07:00
|
|
|
void removeBootstrappedManifestLocation(in nsIFile aLocation);
|
2011-07-29 02:20:47 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
%{ C++
|
|
|
|
#ifdef MOZILLA_INTERNAL_API
|
|
|
|
#include "nsComponentManagerUtils.h"
|
|
|
|
#endif
|
|
|
|
%} C++
|