From da25d9e23587ec8717c85d4efe21e3f6eb3184bd Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Wed, 19 Jul 2000 03:05:23 +0000 Subject: [PATCH] Add RegisterPlugin() & UnregisterPlugin() APIs to the plugin manager. git-svn-id: svn://10.0.0.236/branches/PLUGIN_LOVE_2000_07_17_BRANCH@74438 18797224-902f-48f8-a5cc-f745e15eee43 --- .../plugin/base/public/nsIPluginManager.h | 41 +++++++++++++++++++ .../modules/plugin/public/nsIPluginManager.h | 41 +++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/mozilla/modules/plugin/base/public/nsIPluginManager.h b/mozilla/modules/plugin/base/public/nsIPluginManager.h index 86874600bbb..b65328545bb 100644 --- a/mozilla/modules/plugin/base/public/nsIPluginManager.h +++ b/mozilla/modules/plugin/base/public/nsIPluginManager.h @@ -181,6 +181,47 @@ public: PRUint32 postHeadersLength = 0, const char* postHeaders = NULL) = 0; + + /** + * Persistently register a plugin with the plugin + * manager. aMimeTypes, aMimeDescriptions, and aFileExtensions are + * parallel arrays that contain information about the MIME types + * that the plugin supports. + * + * @param aCID - the plugin's CID + * @param aPluginName - the plugin's name + * @param aDescription - a description of the plugin + * @param aMimeTypes - an array of MIME types that the plugin + * is prepared to handle + * @param aMimeDescriptions - an array of descriptions for the + * MIME types that the plugin can handle. + * @param aFileExtensions - an array of file extensions for + * the MIME types that the plugin can handle. + * @param aCount - the number of elements in the aMimeTypes, + * aMimeDescriptions, and aFileExtensions arrays. + * @result - NS_OK if the operation was successful. + */ + + NS_IMETHOD + RegisterPlugin(REFNSIID aCID, + const char* aPluginName, + const char* aDescription, + const char** aMimeTypes, + const char** aMimeDescriptions, + const char** aFileExtensions, + PRInt32 aCount) = 0; + + + /** + * Unregister a plugin from the plugin manager + * + * @param aCID the CID of the plugin to unregister. + * @result - NS_OK if the operation was successful. + */ + + NS_IMETHOD + UnregisterPlugin(REFNSIID aCID) = 0; + }; //////////////////////////////////////////////////////////////////////////////// diff --git a/mozilla/modules/plugin/public/nsIPluginManager.h b/mozilla/modules/plugin/public/nsIPluginManager.h index 86874600bbb..b65328545bb 100644 --- a/mozilla/modules/plugin/public/nsIPluginManager.h +++ b/mozilla/modules/plugin/public/nsIPluginManager.h @@ -181,6 +181,47 @@ public: PRUint32 postHeadersLength = 0, const char* postHeaders = NULL) = 0; + + /** + * Persistently register a plugin with the plugin + * manager. aMimeTypes, aMimeDescriptions, and aFileExtensions are + * parallel arrays that contain information about the MIME types + * that the plugin supports. + * + * @param aCID - the plugin's CID + * @param aPluginName - the plugin's name + * @param aDescription - a description of the plugin + * @param aMimeTypes - an array of MIME types that the plugin + * is prepared to handle + * @param aMimeDescriptions - an array of descriptions for the + * MIME types that the plugin can handle. + * @param aFileExtensions - an array of file extensions for + * the MIME types that the plugin can handle. + * @param aCount - the number of elements in the aMimeTypes, + * aMimeDescriptions, and aFileExtensions arrays. + * @result - NS_OK if the operation was successful. + */ + + NS_IMETHOD + RegisterPlugin(REFNSIID aCID, + const char* aPluginName, + const char* aDescription, + const char** aMimeTypes, + const char** aMimeDescriptions, + const char** aFileExtensions, + PRInt32 aCount) = 0; + + + /** + * Unregister a plugin from the plugin manager + * + * @param aCID the CID of the plugin to unregister. + * @result - NS_OK if the operation was successful. + */ + + NS_IMETHOD + UnregisterPlugin(REFNSIID aCID) = 0; + }; ////////////////////////////////////////////////////////////////////////////////