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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user