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