2001-12-19 00:12:41 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00: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/. */
|
2013-07-05 19:20:04 +00:00
|
|
|
|
2001-12-19 00:12:41 +00:00
|
|
|
/**
|
|
|
|
* The nsIComponentManager interface.
|
1999-09-05 06:27:42 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2012-06-06 02:08:30 +00:00
|
|
|
interface nsIFile;
|
2001-12-19 00:12:41 +00:00
|
|
|
interface nsIFactory;
|
2013-07-05 19:20:04 +00:00
|
|
|
interface nsIArray;
|
2000-01-24 21:28:28 +00:00
|
|
|
|
2013-07-05 19:20:04 +00:00
|
|
|
[scriptable, uuid(d604ffc3-1ba3-4f6c-b65f-1ed4199364c3)]
|
1999-09-05 06:27:42 +00:00
|
|
|
interface nsIComponentManager : nsISupports
|
2013-07-05 19:20:04 +00:00
|
|
|
{
|
2000-05-05 06:33:05 +00:00
|
|
|
/**
|
2001-12-19 00:12:41 +00:00
|
|
|
* getClassObject
|
2000-05-05 06:33:05 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
2001-12-19 00:12:41 +00:00
|
|
|
void getClassObject(in nsCIDRef aClass,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
1999-09-05 06:27:42 +00:00
|
|
|
|
2000-05-05 06:33:05 +00:00
|
|
|
/**
|
2001-12-19 00:12:41 +00:00
|
|
|
* getClassObjectByContractID
|
2000-05-05 06:33:05 +00:00
|
|
|
*
|
2001-12-19 00:12:41 +00:00
|
|
|
* Returns the factory object that can be used to create instances of
|
|
|
|
* CID aClass
|
2000-05-05 06:33:05 +00:00
|
|
|
*
|
2001-12-19 00:12:41 +00:00
|
|
|
* @param aClass The classid of the factory that is being requested
|
2000-05-05 06:33:05 +00:00
|
|
|
*/
|
2001-12-19 00:12:41 +00:00
|
|
|
void getClassObjectByContractID(in string aContractID,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
2000-05-05 06:33:05 +00:00
|
|
|
|
|
|
|
|
2001-12-19 00:12:41 +00:00
|
|
|
/**
|
2000-05-05 06:33:05 +00:00
|
|
|
* 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
|
|
|
|
*/
|
2001-12-19 00:12:41 +00:00
|
|
|
void createInstance(in nsCIDRef aClass,
|
|
|
|
in nsISupports aDelegate,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
1999-09-05 06:27:42 +00:00
|
|
|
|
1999-09-07 05:06:37 +00:00
|
|
|
/**
|
2000-09-13 23:57:52 +00:00
|
|
|
* createInstanceByContractID
|
2000-05-05 06:33:05 +00:00
|
|
|
*
|
2000-09-13 23:57:52 +00:00
|
|
|
* Create an instance of the CID that implements aContractID and return the
|
2001-12-19 00:12:41 +00:00
|
|
|
* interface aIID.
|
2000-05-05 06:33:05 +00:00
|
|
|
*
|
2000-09-13 23:57:52 +00:00
|
|
|
* @param aContractID : aContractID of object instance requested
|
2000-05-05 06:33:05 +00:00
|
|
|
* @param aDelegate : Used for aggregation
|
|
|
|
* @param aIID : IID of interface requested
|
|
|
|
*/
|
2001-12-19 00:12:41 +00:00
|
|
|
void createInstanceByContractID(in string aContractID,
|
|
|
|
in nsISupports aDelegate,
|
|
|
|
in nsIIDRef aIID,
|
|
|
|
[iid_is(aIID),retval] out nsQIResult result);
|
2011-07-29 09:20:47 +00: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-06 02:08:30 +00:00
|
|
|
void addBootstrappedManifestLocation(in nsIFile aLocation);
|
2011-07-29 09:20:47 +00: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-06 02:08:30 +00:00
|
|
|
void removeBootstrappedManifestLocation(in nsIFile aLocation);
|
2011-07-29 09:20:47 +00:00
|
|
|
|
2013-07-05 19:20:04 +00:00
|
|
|
/**
|
|
|
|
* getManifestLocations
|
|
|
|
*
|
|
|
|
* Get an array of nsIURIs of all registered and builtin manifest locations.
|
|
|
|
*/
|
|
|
|
nsIArray getManifestLocations();
|
1999-09-05 06:27:42 +00:00
|
|
|
};
|
|
|
|
|
2001-12-19 00:12:41 +00:00
|
|
|
|
1999-09-05 06:27:42 +00:00
|
|
|
%{ C++
|
2005-04-06 03:35:24 +00:00
|
|
|
#ifdef MOZILLA_INTERNAL_API
|
1999-09-05 06:27:42 +00:00
|
|
|
#include "nsComponentManagerUtils.h"
|
2001-12-19 00:12:41 +00:00
|
|
|
#endif
|
1999-09-05 06:27:42 +00:00
|
|
|
%} C++
|