mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +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 |
||
---|---|---|
.. | ||
.cvsignore | ||
Makefile.in | ||
makefile.win | ||
MANIFEST | ||
ns4xPlugin.cpp | ||
ns4xPlugin.h | ||
ns4xPluginInstance.cpp | ||
ns4xPluginInstance.h | ||
ns4xPluginStream.cpp | ||
ns4xPluginStream.h | ||
nsIPluginHost.h | ||
nsIPluginInstanceOwner.h | ||
nsMalloc.cpp | ||
nsMalloc.h | ||
nsPluginDocLoaderFactory.cpp | ||
nsPluginDocLoaderFactory.h | ||
nsPluginHostImpl.cpp | ||
nsPluginHostImpl.h | ||
nsPluginInstancePeer.cpp | ||
nsPluginInstancePeer.h | ||
nsPluginModule.cpp | ||
nsPluginSafety.h | ||
nsPluginsCID.h | ||
nsPluginsDir.h | ||
nsPluginsDirBeOS.cpp | ||
nsPluginsDirMac.cpp | ||
nsPluginsDirOS2.cpp | ||
nsPluginsDirUNIX.cpp | ||
nsPluginsDirWin.cpp | ||
nsPluginStreamPeer.cpp | ||
nsPluginStreamPeer.h | ||
nsPluginViewer.cpp | ||
nsPluginViewer.h |