mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +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 | ||
nsICookieStorage.h | ||
nsICookieStorage.idl | ||
nsIEventHandler.h | ||
nsIEventHandler.idl | ||
nsIFileUtilities.h | ||
nsIHTTPHeaderListener.idl | ||
nsIJRILiveConnectPlugin.h | ||
nsIJRILiveConnectPlugin.idl | ||
nsIJRILiveConnectPlugInstPeer.h | ||
nsIJRILiveConnectPlugInstPeer.idl | ||
nsILiveConnectPlugin.h | ||
nsILiveConnectPlugin.idl | ||
nsILiveConnectPlugInstPeer.h | ||
nsILiveConnectPlugInstPeer.idl | ||
nsIMalloc.h | ||
nsIPlugin.h | ||
nsIPlugin.idl | ||
nsIPluginInputStream2.h | ||
nsIPluginInputStream.h | ||
nsIPluginInstance.h | ||
nsIPluginInstance.idl | ||
nsIPluginInstancePeer2.h | ||
nsIPluginInstancePeer2.idl | ||
nsIPluginInstancePeer.h | ||
nsIPluginInstancePeer.idl | ||
nsIPluginManager2.h | ||
nsIPluginManager2.idl | ||
nsIPluginManager.h | ||
nsIPluginManager.idl | ||
nsIPluginManagerMac.idl | ||
nsIPluginStream.h | ||
nsIPluginStreamInfo.h | ||
nsIPluginStreamInfo.idl | ||
nsIPluginStreamListener.h | ||
nsIPluginStreamListener.idl | ||
nsIPluginStreamPeer2.h | ||
nsIPluginStreamPeer.h | ||
nsIPluginTagInfo2.h | ||
nsIPluginTagInfo2.idl | ||
nsIPluginTagInfo.h | ||
nsIPluginTagInfo.idl | ||
nsIScriptablePlugin.idl | ||
nsISeekablePluginStreamPeer.h | ||
nsIWindowlessPlugInstPeer.h | ||
nsplugin.h | ||
nsPlugin.idl | ||
nsplugindefs.h | ||
nsPluginDefs.idl |