added CreatePluginInstance, to create a plugin instance with a specified MIME type.

git-svn-id: svn://10.0.0.236/trunk@24133 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 1999-03-14 20:09:12 +00:00
parent bacd108673
commit ec20be3608
2 changed files with 18 additions and 0 deletions

View File

@ -66,6 +66,15 @@ class nsIPlugin : public nsIFactory {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGIN_IID)
/**
* Creates a new plugin instance, based on a MIME type. This
* allows different impelementations to be created depending on
* the specified MIME type.
*/
NS_IMETHOD CreatePluginInstance(nsISupports *aOuter, REFNSIID aIID,
const char* aPluginMIMEType,
void **aResult) = 0;
/**
* Initializes the plugin and will be called before any new instances are
* created. It is passed browserInterfaces on which QueryInterface

View File

@ -66,6 +66,15 @@ class nsIPlugin : public nsIFactory {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGIN_IID)
/**
* Creates a new plugin instance, based on a MIME type. This
* allows different impelementations to be created depending on
* the specified MIME type.
*/
NS_IMETHOD CreatePluginInstance(nsISupports *aOuter, REFNSIID aIID,
const char* aPluginMIMEType,
void **aResult) = 0;
/**
* Initializes the plugin and will be called before any new instances are
* created. It is passed browserInterfaces on which QueryInterface