Minor changes to nsIStreamListener interface... OnStartBinding(...) now passes out the stream content-type. User visible strings are now nsString arguments (for subsequent i18n)

git-svn-id: svn://10.0.0.236/trunk@3160 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts
1998-06-04 05:09:32 +00:00
parent 7cd20442b9
commit f9515f9806
12 changed files with 79 additions and 55 deletions

View File

@@ -21,6 +21,7 @@
#include "net.h"
#include "mktrace.h"
#include "nsString.h"
#include "nsIProtocolConnection.h"
/* XXX: Legacy definitions... */
@@ -318,7 +319,9 @@ static void bam_exit_routine(URL_Struct *URL_s, int status, MWContext *window_id
* closed (or possibly created). So, the binding has failed...
*/
if (pConn->pConsumer) {
pConn->pConsumer->OnStopBinding(NS_BINDING_FAILED, nsnull);
nsAutoString status;
pConn->pConsumer->OnStopBinding(NS_BINDING_FAILED, status);
pConn->pConsumer->Release();
pConn->pConsumer = NULL;
}