gecko-dev/modules/plugin/public
edburns%acm.org dee7ed58dd r=vidur, av
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
2000-09-14 22:57:56 +00:00
..
.cvsignore
Makefile.in a=brendan,av 2000-09-13 06:40:57 +00:00
makefile.win a=brendan,av 2000-09-13 06:40:57 +00:00
MANIFEST
nsICookieStorage.h
nsICookieStorage.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIEventHandler.h
nsIEventHandler.idl Lowercased handleEvent 2000-05-25 08:29:10 +00:00
nsIFileUtilities.h
nsIHTTPHeaderListener.idl a=brendan,av 2000-09-13 07:07:18 +00:00
nsIJRILiveConnectPlugin.h
nsIJRILiveConnectPlugin.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIJRILiveConnectPlugInstPeer.h
nsIJRILiveConnectPlugInstPeer.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsILiveConnectPlugin.h
nsILiveConnectPlugin.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsILiveConnectPlugInstPeer.h
nsILiveConnectPlugInstPeer.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIMalloc.h
nsIPlugin.h Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nsIPlugin.idl Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nsIPluginInputStream2.h
nsIPluginInputStream.h
nsIPluginInstance.h
nsIPluginInstance.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginInstancePeer2.h
nsIPluginInstancePeer2.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginInstancePeer.h
nsIPluginInstancePeer.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginManager2.h
nsIPluginManager2.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginManager.h r=vidur, av 2000-09-14 22:57:56 +00:00
nsIPluginManager.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginManagerMac.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginStream.h
nsIPluginStreamInfo.h
nsIPluginStreamInfo.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginStreamListener.h
nsIPluginStreamListener.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginStreamPeer2.h
nsIPluginStreamPeer.h
nsIPluginTagInfo2.h #26893, moved GetDOMElement from nsIPluginTagInfo to nsIPluginTagInfo2.h 2000-04-18 21:44:56 +00:00
nsIPluginTagInfo2.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIPluginTagInfo.h #26893, moved GetDOMElement from nsIPluginTagInfo to nsIPluginTagInfo2.h 2000-04-18 21:44:56 +00:00
nsIPluginTagInfo.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00
nsIScriptablePlugin.idl Part of fix for 39911, which is a dependency of nsbeta+ bug 38495. 2000-06-14 01:04:06 +00:00
nsISeekablePluginStreamPeer.h
nsIWindowlessPlugInstPeer.h
nsplugin.h Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nsPlugin.idl Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nsplugindefs.h a=brendan, ekrock 2000-09-14 08:22:31 +00:00
nsPluginDefs.idl New beta-quality Plugin API (now in IDL!). 2000-05-20 20:03:36 +00:00