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
2000-09-14 21:35:05 +00:00
2000-09-14 22:56:05 +00:00
2000-09-14 22:00:20 +00:00
2000-09-12 00:53:33 +00:00
2000-09-14 22:57:56 +00:00
2000-05-10 23:20:05 +00:00
2000-09-14 19:25:13 +00:00
2000-09-07 21:55:24 +00:00
2000-09-14 22:49:36 +00:00
2000-09-14 21:36:03 +00:00
2000-06-29 00:18:55 +00:00
2000-09-11 05:15:15 +00:00
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
6.1 GiB
Languages
JavaScript 32.3%
C++ 25.5%
HTML 21%
C 10.8%
Python 2.8%
Other 7.1%