From e6b61670d4abb0f8ba3f8d48a07d1de8d7c4fa8a Mon Sep 17 00:00:00 2001 From: rpotts Date: Wed, 1 Jul 1998 11:11:44 +0000 Subject: [PATCH] Changed nsIStreamListener to nsIStreamObserver... git-svn-id: svn://10.0.0.236/trunk@4789 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/robot/nsDebugRobot.cpp | 6 +++--- mozilla/parser/htmlparser/robot/nsDebugRobot.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/htmlparser/robot/nsDebugRobot.cpp b/mozilla/htmlparser/robot/nsDebugRobot.cpp index b246d31327a..ab4580897ab 100644 --- a/mozilla/htmlparser/robot/nsDebugRobot.cpp +++ b/mozilla/htmlparser/robot/nsDebugRobot.cpp @@ -111,11 +111,12 @@ NS_IMETHODIMP RobotSinkObserver::ProcessLink(const nsString& aURLSpec) extern "C" NS_EXPORT void SetVerificationDirectory(char * verify_dir); -class CStreamListener: public nsIStreamListener +class CStreamListener: public nsIStreamObserver { public: CStreamListener() { NS_INIT_REFCNT(); + } ~CStreamListener() { @@ -123,10 +124,8 @@ public: NS_DECL_ISUPPORTS - NS_IMETHOD GetBindInfo(void) { return NS_OK; } NS_IMETHOD OnProgress(PRInt32 Progress, PRInt32 ProgressMax, const nsString& aMsg) { return NS_OK; } NS_IMETHOD OnStartBinding(const char *aContentType) { return NS_OK; } - NS_IMETHOD OnDataAvailable(nsIInputStream *pIStream, PRInt32 length) { return NS_OK; } NS_IMETHOD OnStopBinding(PRInt32 status, const nsString& aMsg); }; @@ -158,6 +157,7 @@ extern "C" NS_EXPORT int DebugRobot( int iCount = 1; CStreamListener * pl = new CStreamListener; NS_ADDREF(pl); + if (nsnull==workList) return -1; g_iMaxProcess = iMaxLoads; diff --git a/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp b/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp index b246d31327a..ab4580897ab 100644 --- a/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp +++ b/mozilla/parser/htmlparser/robot/nsDebugRobot.cpp @@ -111,11 +111,12 @@ NS_IMETHODIMP RobotSinkObserver::ProcessLink(const nsString& aURLSpec) extern "C" NS_EXPORT void SetVerificationDirectory(char * verify_dir); -class CStreamListener: public nsIStreamListener +class CStreamListener: public nsIStreamObserver { public: CStreamListener() { NS_INIT_REFCNT(); + } ~CStreamListener() { @@ -123,10 +124,8 @@ public: NS_DECL_ISUPPORTS - NS_IMETHOD GetBindInfo(void) { return NS_OK; } NS_IMETHOD OnProgress(PRInt32 Progress, PRInt32 ProgressMax, const nsString& aMsg) { return NS_OK; } NS_IMETHOD OnStartBinding(const char *aContentType) { return NS_OK; } - NS_IMETHOD OnDataAvailable(nsIInputStream *pIStream, PRInt32 length) { return NS_OK; } NS_IMETHOD OnStopBinding(PRInt32 status, const nsString& aMsg); }; @@ -158,6 +157,7 @@ extern "C" NS_EXPORT int DebugRobot( int iCount = 1; CStreamListener * pl = new CStreamListener; NS_ADDREF(pl); + if (nsnull==workList) return -1; g_iMaxProcess = iMaxLoads;