mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
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:
parent
4d50d925e5
commit
91f8b8ca1e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -62,6 +62,7 @@ protected:
|
||||
nsCOMPtr<nsIStreamListener> mRealListener;
|
||||
PRUint32 mBufferSegmentSize;
|
||||
PRUint32 mBufferMaxSize;
|
||||
PRUint32 mLoadAttributes;
|
||||
};
|
||||
|
||||
#endif // nsInputStreamChannel_h__
|
||||
|
Loading…
Reference in New Issue
Block a user