mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
dee7ed58dd
a=brendan bug=49525 This simple fix just adds parameters to an existing method in an XPCOM safe way, by defining a new method at the end of the interface definition with the additional parameters. Original method: 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; New method: 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; I have modified nsPluginHostImpl.h to include this new method, and modified nsPluginHostImpl.cpp so that its GetURL calls GetURLWithHeaders with null values for the last two params. M modules/plugin/public/nsIPluginManager.h M modules/plugin/nglsrc/nsPluginHostImpl.cpp M modules/plugin/nglsrc/nsPluginHostImpl.h |
||
---|---|---|
.. | ||
appfilelocprovider | ||
calendar | ||
coreincl | ||
edtplug | ||
fullsoft | ||
libfont | ||
libhook | ||
libimg | ||
libjar | ||
libnls/headers | ||
libpref | ||
libreg | ||
libtest | ||
libutil | ||
mpfilelocprovider | ||
oji | ||
plugin | ||
progress | ||
rdf | ||
schedulr | ||
security | ||
softupdt | ||
xml | ||
zlib | ||
Makefile | ||
Makefile.in | ||
makefile.win |