LoadUrl signature takes a display consumer

This commit is contained in:
mscott%netscape.com 1999-06-08 00:02:27 +00:00
Родитель 4dc34da92a
Коммит 9ea5079e21
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -155,7 +155,7 @@ NS_IMETHODIMP nsMsgProtocol::OnStopBinding(nsIURL* aURL, nsresult aStatus, const
return aMsgUrl->SetUrlState(PR_FALSE, aStatus); return aMsgUrl->SetUrlState(PR_FALSE, aStatus);
} }
nsresult nsMsgProtocol::LoadUrl(nsIURL * aURL) nsresult nsMsgProtocol::LoadUrl(nsIURL * aURL, nsISupports * /* aConsumer */)
{ {
// okay now kick us off to the next state... // okay now kick us off to the next state...
// our first state is a process state so drive the state machine... // our first state is a process state so drive the state machine...

Просмотреть файл

@ -69,7 +69,8 @@ public:
// LoadUrl -- A protocol typically overrides this function, sets up any local state for the url and // LoadUrl -- A protocol typically overrides this function, sets up any local state for the url and
// then calls the base class which opens the socket if it needs opened. If the socket is // then calls the base class which opens the socket if it needs opened. If the socket is
// already opened then we just call ProcessProtocolState to start the churning process. // already opened then we just call ProcessProtocolState to start the churning process.
virtual nsresult LoadUrl(nsIURL * aURL); // aConsumer is the consumer for the url. It can be null if this argument is not appropriate
virtual nsresult LoadUrl(nsIURL * aURL, nsISupports * aConsumer = nsnull);
// Flag manipulators // Flag manipulators
PRBool TestFlag (PRUint32 flag) {return flag & m_flags;} PRBool TestFlag (PRUint32 flag) {return flag & m_flags;}