Bug 790617 - Part 1 - setUploadStream can handle 64-bit length r=cbiesinger

This commit is contained in:
Makoto Kato 2012-09-19 17:09:08 +09:00
Родитель 5cb3a7f8fc
Коммит d0f10170d1
5 изменённых файлов: 6 добавлений и 6 удалений

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

@ -14,7 +14,7 @@ interface nsIInputStream;
* notion of uploading a data stream. The upload stream may only be set
* prior to the invocation of asyncOpen on the channel.
*/
[scriptable, uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)]
[scriptable, uuid(5cfe15bd-5adb-4a7f-9e55-4f5a67d15794)]
interface nsIUploadChannel : nsISupports
{
/**
@ -47,7 +47,7 @@ interface nsIUploadChannel : nsISupports
*/
void setUploadStream(in nsIInputStream aStream,
in ACString aContentType,
in long aContentLength);
in long long aContentLength);
/**
* Get the stream (to be) uploaded by this channel.

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

@ -414,7 +414,7 @@ nsFileChannel::GetFile(nsIFile **file)
NS_IMETHODIMP
nsFileChannel::SetUploadStream(nsIInputStream *stream,
const nsACString &contentType,
int32_t contentLength)
int64_t contentLength)
{
NS_ENSURE_TRUE(!IsPending(), NS_ERROR_IN_PROGRESS);

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

@ -118,7 +118,7 @@ FTPChannelChild::GetProxyInfo(nsIProxyInfo** aProxyInfo)
NS_IMETHODIMP
FTPChannelChild::SetUploadStream(nsIInputStream* stream,
const nsACString& contentType,
int32_t contentLength)
int64_t contentLength)
{
NS_ENSURE_TRUE(!mIsPending, NS_ERROR_IN_PROGRESS);
mUploadStream = stream;

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

@ -58,7 +58,7 @@ NS_IMPL_ISUPPORTS_INHERITED5(nsFtpChannel,
NS_IMETHODIMP
nsFtpChannel::SetUploadStream(nsIInputStream *stream,
const nsACString &contentType,
int32_t contentLength)
int64_t contentLength)
{
NS_ENSURE_TRUE(!IsPending(), NS_ERROR_IN_PROGRESS);

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

@ -441,7 +441,7 @@ HttpBaseChannel::GetUploadStream(nsIInputStream **stream)
NS_IMETHODIMP
HttpBaseChannel::SetUploadStream(nsIInputStream *stream,
const nsACString &contentType,
int32_t contentLength)
int64_t contentLength)
{
// NOTE: for backwards compatibility and for compatibility with old style
// plugins, |stream| may include headers, specifically Content-Type and