need ability to write load attrib flags on input stream channel as part of the refactoring of the doc loader

into the uri loader
r=travis
This commit is contained in:
mscott%netscape.com 2000-01-29 05:05:38 +00:00
parent 4d50d925e5
commit 91f8b8ca1e
2 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@ static NS_DEFINE_CID(kFileTransportServiceCID, NS_FILETRANSPORTSERVICE_CID);
// nsInputStreamChannel methods:
nsInputStreamChannel::nsInputStreamChannel()
: mContentType(nsnull), mContentLength(-1)
: mContentType(nsnull), mContentLength(-1), mLoadAttributes(LOAD_NORMAL)
{
NS_INIT_REFCNT();
}
@ -252,14 +252,14 @@ nsInputStreamChannel::AsyncWrite(nsIInputStream *fromStream, PRUint32 startPosit
NS_IMETHODIMP
nsInputStreamChannel::GetLoadAttributes(nsLoadFlags *aLoadAttributes)
{
*aLoadAttributes = LOAD_NORMAL;
*aLoadAttributes = mLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP
nsInputStreamChannel::SetLoadAttributes(nsLoadFlags aLoadAttributes)
{
// ignore attempts to set load attributes
mLoadAttributes = aLoadAttributes;
return NS_OK;
}

View File

@ -62,6 +62,7 @@ protected:
nsCOMPtr<nsIStreamListener> mRealListener;
PRUint32 mBufferSegmentSize;
PRUint32 mBufferMaxSize;
PRUint32 mLoadAttributes;
};
#endif // nsInputStreamChannel_h__