diff --git a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp index ff55772a0a5..a0565dd3433 100644 --- a/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/src/nsFtpConnectionThread.cpp @@ -77,6 +77,28 @@ nsFtpConnectionThread::~nsFtpConnectionThread() { } +//////////////////////////////////////////////////////////////////////////////// +// nsICancelable methods: + +NS_IMETHODIMP +nsFtpConnectionThread::Cancel(void) { + return NS_ERROR_NOT_IMPLEMENTED; +} + +NS_IMETHODIMP +nsFtpConnectionThread::Suspend(void) { + return NS_ERROR_NOT_IMPLEMENTED; +} + +NS_IMETHODIMP +nsFtpConnectionThread::Resume(void) { + return NS_ERROR_NOT_IMPLEMENTED; +} + + +//////////////////////////////////////////////////////////////////////////////// +// nsIRunnable method: + // main event loop NS_IMETHODIMP nsFtpConnectionThread::Run() { diff --git a/netwerk/protocol/ftp/src/nsFtpConnectionThread.h b/netwerk/protocol/ftp/src/nsFtpConnectionThread.h index 1f0099f57e7..99fd21c004d 100644 --- a/netwerk/protocol/ftp/src/nsFtpConnectionThread.h +++ b/netwerk/protocol/ftp/src/nsFtpConnectionThread.h @@ -106,7 +106,7 @@ typedef enum _FTP_ACTION { DEL } FTP_ACTION; -class nsFtpConnectionThread : public nsIRunnable { +class nsFtpConnectionThread : public nsIRunnable, nsICancelable { public: NS_DECL_ISUPPORTS @@ -116,6 +116,11 @@ public: // nsIRunnable method NS_IMETHOD Run(); + // nsICancelable methods: + NS_IMETHOD Cancel(void); + NS_IMETHOD Suspend(void); + NS_IMETHOD Resume(void); + nsresult Init(nsIThread* aThread, nsIUrl* aUrl);