48#include "nsISupports.idl"
49#include "nspluginroot.idl"
52#include "nsplugindefs.h"
57#define NS_PLUGINMANAGER_CID \
62 {0x81, 0x64, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a} \
68[scriptable, uuid(da58ad80-4eb6-11d2-8164-006008119d7a)]
88 [noscript]
void GetValue(in nsPluginManagerVariable variable, in nativeVoid value);
108 [noscript]
void UserAgent(in nativeChar resultingAgentString);
135 const char* target = NULL,
137 const char* altHost = NULL,
138 const char* referrer = NULL,
139 PRBool forceJSEnabled = PR_FALSE) = 0;
177 PRUint32 postDataLen,
178 const char* postData,
179 PRBool isFile = PR_FALSE,
180 const char* target = NULL,
182 const char* altHost = NULL,
183 const char* referrer = NULL,
184 PRBool forceJSEnabled = PR_FALSE,
185 PRUint32 postHeadersLength = 0,
186 const char* postHeaders = NULL) = 0;
209 in
string aPluginName,
210 in
string aDescription,
211 in nativeChar aMimeTypes,
212 in nativeChar aMimeDescriptions,
213 in nativeChar aFileExtensions,
239 const char* target = NULL,
241 const char* altHost = NULL,
242 const char* referrer = NULL,
243 PRBool forceJSEnabled = PR_FALSE,
244 PRUint32 getHeadersLength = 0,
245 const char* getHeaders = NULL) = 0;
void RegisterPlugin(in REFNSIID aCID, in string aPluginName, in string aDescription, in nativeChar aMimeTypes, in nativeChar aMimeDescriptions, in nativeChar aFileExtensions, in long aCount)
Persistently register a plugin with the plugin manager.
void GetValue(in nsPluginManagerVariable variable, in nativeVoid value)
Returns the value of a variable associated with the plugin manager.
void reloadPlugins(in boolean reloadPages)
Causes the plugins directory to be searched again for new plugin libraries.
NS_IMETHOD GetURLWithHeaders(nsISupports *pluginInst, const char *url, const char *target=NULL, nsIPluginStreamListener *streamListener=NULL, const char *altHost=NULL, const char *referrer=NULL, PRBool forceJSEnabled=PR_FALSE, PRUint32 getHeadersLength=0, const char *getHeaders=NULL)=0
Fetches a URL, with Headers.
void UnregisterPlugin(in REFNSIID aCID)
Unregister a plugin from the plugin manager.
NS_IMETHOD PostURL(nsISupports *pluginInst, const char *url, PRUint32 postDataLen, const char *postData, PRBool isFile=PR_FALSE, const char *target=NULL, nsIPluginStreamListener *streamListener=NULL, const char *altHost=NULL, const char *referrer=NULL, PRBool forceJSEnabled=PR_FALSE, PRUint32 postHeadersLength=0, const char *postHeaders=NULL)=0
Posts to a URL with post data and/or post headers.
NS_IMETHOD GetURL(nsISupports *pluginInst, const char *url, const char *target=NULL, nsIPluginStreamListener *streamListener=NULL, const char *altHost=NULL, const char *referrer=NULL, PRBool forceJSEnabled=PR_FALSE)=0
Fetches a URL.
void UserAgent(in nativeChar resultingAgentString)
Returns the user agent string for the browser.