mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
Bug 1792437, part 2 - Remove nsIModule. r=xpcom-reviewers,nika
I think some prior XPCOM component work removed the uses of this. Differential Revision: https://phabricator.services.mozilla.com/D158210
This commit is contained in:
parent
c954e90d57
commit
cc63625045
@ -110,9 +110,6 @@ nsUnknownContentTypeDialogProgressListener.prototype = {
|
||||
* comprised of:
|
||||
* - a JS constructor function
|
||||
* - a prototype providing all the interface methods and implementation stuff
|
||||
*
|
||||
* In addition, this file implements an nsIModule object that registers the
|
||||
* nsUnknownContentTypeDialog component.
|
||||
*/
|
||||
|
||||
const PREF_BD_USEDOWNLOADDIR = "browser.download.useDownloadDir";
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
/**
|
||||
* This file is designed to be included into the file that provides the
|
||||
* nsIModule implementation for a particular widget toolkit.
|
||||
* XPCOM module implementation for a particular widget toolkit.
|
||||
*
|
||||
* The following functions are defined:
|
||||
* nsAppShellInit
|
||||
|
@ -21,7 +21,6 @@
|
||||
#endif
|
||||
|
||||
DECL_CLASS(nsISupports);
|
||||
DECL_CLASS(nsIModule);
|
||||
DECL_CLASS(nsIComponentManager);
|
||||
DECL_CLASS(nsIComponentRegistrar);
|
||||
DECL_CLASS(nsIServiceManager);
|
||||
|
@ -10,7 +10,6 @@ XPIDL_SOURCES += [
|
||||
"nsIComponentManager.idl",
|
||||
"nsIComponentRegistrar.idl",
|
||||
"nsIFactory.idl",
|
||||
"nsIModule.idl",
|
||||
"nsIServiceManager.idl",
|
||||
]
|
||||
|
||||
|
@ -1,82 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/* 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/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIFile;
|
||||
interface nsIComponentManager;
|
||||
|
||||
/**
|
||||
* The nsIModule interface.
|
||||
*/
|
||||
|
||||
[scriptable, uuid(7392D032-5371-11d3-994E-00805FD26FEE)]
|
||||
interface nsIModule : nsISupports
|
||||
{
|
||||
/**
|
||||
* Object Instance Creation
|
||||
*
|
||||
* Obtains a Class Object from a nsIModule for a given CID and IID pair.
|
||||
* This class object can either be query to a nsIFactory or a may be
|
||||
* query to a nsIClassInfo.
|
||||
*
|
||||
* @param aCompMgr : The global component manager
|
||||
* @param aClass : ClassID of object instance requested
|
||||
* @param aIID : IID of interface requested
|
||||
*
|
||||
*/
|
||||
void getClassObject(in nsIComponentManager aCompMgr,
|
||||
in nsCIDRef aClass,
|
||||
in nsIIDRef aIID,
|
||||
[retval, iid_is(aIID)] out nsQIResult aResult);
|
||||
|
||||
|
||||
/**
|
||||
* One time registration callback
|
||||
*
|
||||
* When the nsIModule is discovered, this method will be
|
||||
* called so that any setup registration can be preformed.
|
||||
*
|
||||
* @param aCompMgr : The global component manager
|
||||
* @param aLocation : The location of the nsIModule on disk
|
||||
* @param aLoaderStr: Opaque loader specific string
|
||||
* @param aType : Loader Type being used to load this module
|
||||
*/
|
||||
void registerSelf(in nsIComponentManager aCompMgr,
|
||||
in nsIFile aLocation,
|
||||
in string aLoaderStr,
|
||||
in string aType);
|
||||
/**
|
||||
* One time unregistration callback
|
||||
*
|
||||
* When the nsIModule is being unregistered, this method will be
|
||||
* called so that any unregistration can be preformed
|
||||
*
|
||||
* @param aCompMgr : The global component manager
|
||||
* @param aLocation : The location of the nsIModule on disk
|
||||
* @param aLoaderStr : Opaque loader specific string
|
||||
*
|
||||
*/
|
||||
void unregisterSelf(in nsIComponentManager aCompMgr,
|
||||
in nsIFile aLocation,
|
||||
in string aLoaderStr);
|
||||
|
||||
/**
|
||||
* Module load management
|
||||
*
|
||||
* @param aCompMgr : The global component manager
|
||||
*
|
||||
* @return indicates to the caller if the module can be unloaded.
|
||||
* Returning PR_TRUE isn't a guarantee that the module will be
|
||||
* unloaded. It constitues only willingness of the module to be
|
||||
* unloaded. It is very important to ensure that no outstanding
|
||||
* references to the module's code/data exist before returning
|
||||
* PR_TRUE.
|
||||
* Returning PR_FALSE guaratees that the module won't be unloaded.
|
||||
*/
|
||||
boolean canUnload(in nsIComponentManager aCompMgr);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user