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

@@ -1629,7 +1629,7 @@ nsresult nsHTMLParser::GetBindInfo(void){
*/
nsresult
nsHTMLParser::OnProgress(PRInt32 aProgress, PRInt32 aProgressMax,
const char *aMsg)
const nsString& aMsg)
{
nsresult result=0;
if (nsnull != mListener) {
@@ -1645,9 +1645,9 @@ nsHTMLParser::OnProgress(PRInt32 aProgress, PRInt32 aProgressMax,
* @param
* @return
*/
nsresult nsHTMLParser::OnStartBinding(void){
nsresult nsHTMLParser::OnStartBinding(const char *aContentType){
if (nsnull != mListener) {
mListener->OnStartBinding();
mListener->OnStartBinding(aContentType);
}
nsresult result=WillBuildModel();
if(!mTransferBuffer) {
@@ -1710,10 +1710,10 @@ nsresult nsHTMLParser::OnDataAvailable(nsIInputStream *pIStream, PRInt32 length)
* @param
* @return
*/
nsresult nsHTMLParser::OnStopBinding(PRInt32 status, const char *msg){
nsresult nsHTMLParser::OnStopBinding(PRInt32 status, const nsString& aMsg){
nsresult result=DidBuildModel(status);
if (nsnull != mListener) {
mListener->OnStopBinding(status, msg);
mListener->OnStopBinding(status, aMsg);
}
return result;
}