зеркало из https://github.com/mozilla/gecko-dev.git
Bug 790617 - Part 1 - setUploadStream can handle 64-bit length r=cbiesinger
This commit is contained in:
Родитель
5cb3a7f8fc
Коммит
d0f10170d1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче