Moves uploadStream to nsIUploadChannel. r=neeti@netscape.com, sr=darin@netscape.com, b=100601

git-svn-id: svn://10.0.0.236/trunk@130433 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2002-09-25 20:15:17 +00:00
parent 3702371173
commit 4cd3ac5a72
7 changed files with 42 additions and 9 deletions

View File

@@ -117,7 +117,8 @@ typedef unsigned long HMTX;
#include "nsIFileStream.h"
#include "nsISHistoryInternal.h"
#include "nsIHttpChannel.h" // add this to the ick include list...we need it to QI for post data interface
#include "nsIHttpChannel.h"
#include "nsIUploadChannel.h"
#include "nsILocaleService.h"
#include "nsIStringBundle.h"
@@ -1047,7 +1048,10 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
if(httpChannel) {
httpChannel->GetReferrer(getter_AddRefs(referrer));
httpChannel->GetUploadStream(getter_AddRefs(inputStream));
nsCOMPtr<nsIUploadChannel> uploadChannel(do_QueryInterface(channel));
if (uploadChannel) {
httpChannel->GetUploadStream(getter_AddRefs(inputStream));
}
}
}
nsCOMPtr<nsISeekableStream> postDataSeekable(do_QueryInterface(inputStream));