Changed nsIContentSink->NotifyError() to accept an nsParserError argument.

This change is needed for propagating errors from the new
expat parser.


git-svn-id: svn://10.0.0.236/trunk@23028 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nisheeth%netscape.com
1999-03-06 01:48:11 +00:00
parent 304b78af18
commit 5016ed7684
10 changed files with 16 additions and 14 deletions

View File

@@ -1046,7 +1046,7 @@ nsHTMLContentSinkStream::SetParser(nsIParser* aParser) {
}
NS_IMETHODIMP
nsHTMLContentSinkStream::NotifyError(nsresult aErrorResult)
nsHTMLContentSinkStream::NotifyError(const nsParserError* aError)
{
return NS_OK;
}

View File

@@ -93,7 +93,7 @@ class nsHTMLContentSinkStream : public nsIHTMLContentSink {
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD NotifyError(nsresult aErrorResult);
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);

View File

@@ -47,7 +47,7 @@ public:
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD NotifyError(nsresult aErrorResult);
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
@@ -578,7 +578,7 @@ nsHTMLNullSink::SetParser(nsIParser* aParser)
}
NS_IMETHODIMP
nsHTMLNullSink::NotifyError(nsresult aErrorResult)
nsHTMLNullSink::NotifyError(const nsParserError* aError)
{
return NS_OK;
}

View File

@@ -34,6 +34,7 @@
#include "nsIParserNode.h"
#include "nsISupports.h"
#include "nsParserError.h"
class nsIParser;
@@ -139,7 +140,7 @@ public:
*
* @param aErrorResult the error code
*/
NS_IMETHOD NotifyError(nsresult aErrorResult)=0;
NS_IMETHOD NotifyError(const nsParserError* aError)=0;
};
#endif /* nsIContentSink_h___ */

View File

@@ -80,7 +80,7 @@ public:
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD NotifyError(nsresult aErrorResult);
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
@@ -251,7 +251,7 @@ nsLoggingSink::AddLeaf(const nsIParserNode& aNode)
}
NS_IMETHODIMP
nsLoggingSink::NotifyError(nsresult aErrorResult)
nsLoggingSink::NotifyError(const nsParserError* aError)
{
return NS_OK;
}

View File

@@ -1046,7 +1046,7 @@ nsHTMLContentSinkStream::SetParser(nsIParser* aParser) {
}
NS_IMETHODIMP
nsHTMLContentSinkStream::NotifyError(nsresult aErrorResult)
nsHTMLContentSinkStream::NotifyError(const nsParserError* aError)
{
return NS_OK;
}

View File

@@ -93,7 +93,7 @@ class nsHTMLContentSinkStream : public nsIHTMLContentSink {
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD NotifyError(nsresult aErrorResult);
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);

View File

@@ -47,7 +47,7 @@ public:
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD NotifyError(nsresult aErrorResult);
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
@@ -578,7 +578,7 @@ nsHTMLNullSink::SetParser(nsIParser* aParser)
}
NS_IMETHODIMP
nsHTMLNullSink::NotifyError(nsresult aErrorResult)
nsHTMLNullSink::NotifyError(const nsParserError* aError)
{
return NS_OK;
}

View File

@@ -34,6 +34,7 @@
#include "nsIParserNode.h"
#include "nsISupports.h"
#include "nsParserError.h"
class nsIParser;
@@ -139,7 +140,7 @@ public:
*
* @param aErrorResult the error code
*/
NS_IMETHOD NotifyError(nsresult aErrorResult)=0;
NS_IMETHOD NotifyError(const nsParserError* aError)=0;
};
#endif /* nsIContentSink_h___ */

View File

@@ -80,7 +80,7 @@ public:
NS_IMETHOD OpenContainer(const nsIParserNode& aNode);
NS_IMETHOD CloseContainer(const nsIParserNode& aNode);
NS_IMETHOD AddLeaf(const nsIParserNode& aNode);
NS_IMETHOD NotifyError(nsresult aErrorResult);
NS_IMETHOD NotifyError(const nsParserError* aError);
NS_IMETHOD AddComment(const nsIParserNode& aNode);
NS_IMETHOD AddProcessingInstruction(const nsIParserNode& aNode);
@@ -251,7 +251,7 @@ nsLoggingSink::AddLeaf(const nsIParserNode& aNode)
}
NS_IMETHODIMP
nsLoggingSink::NotifyError(nsresult aErrorResult)
nsLoggingSink::NotifyError(const nsParserError* aError)
{
return NS_OK;
}