mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 1359718 - Get rid of PBlob - part 6 - removed unused inputStream params, r=smaug
This commit is contained in:
parent
dc11620f89
commit
9281504883
@ -43,19 +43,6 @@ struct MultiplexInputStreamParams
|
|||||||
bool startedReadingCurrent;
|
bool startedReadingCurrent;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RemoteInputStreamParams
|
|
||||||
{
|
|
||||||
nsID id;
|
|
||||||
};
|
|
||||||
|
|
||||||
// XXX This may only be used for same-process inter-thread communication! The
|
|
||||||
// value should be reinterpret_cast'd to nsIInputStream. It carries a
|
|
||||||
// reference.
|
|
||||||
struct SameProcessInputStreamParams
|
|
||||||
{
|
|
||||||
intptr_t addRefedInputStream;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SlicedInputStreamParams
|
struct SlicedInputStreamParams
|
||||||
{
|
{
|
||||||
InputStreamParams stream;
|
InputStreamParams stream;
|
||||||
@ -78,8 +65,6 @@ union InputStreamParams
|
|||||||
BufferedInputStreamParams;
|
BufferedInputStreamParams;
|
||||||
MIMEInputStreamParams;
|
MIMEInputStreamParams;
|
||||||
MultiplexInputStreamParams;
|
MultiplexInputStreamParams;
|
||||||
RemoteInputStreamParams;
|
|
||||||
SameProcessInputStreamParams;
|
|
||||||
SlicedInputStreamParams;
|
SlicedInputStreamParams;
|
||||||
IPCBlobInputStreamParams;
|
IPCBlobInputStreamParams;
|
||||||
};
|
};
|
||||||
|
@ -99,25 +99,6 @@ InputStreamHelper::DeserializeInputStream(const InputStreamParams& aParams,
|
|||||||
serializable = do_CreateInstance(kMultiplexInputStreamCID);
|
serializable = do_CreateInstance(kMultiplexInputStreamCID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// When the input stream already exists in this process, all we need to do
|
|
||||||
// is retrieve the original instead of sending any data over the wire.
|
|
||||||
case InputStreamParams::TRemoteInputStreamParams:
|
|
||||||
// Thi is broken!
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
case InputStreamParams::TSameProcessInputStreamParams: {
|
|
||||||
MOZ_ASSERT(aFileDescriptors.IsEmpty());
|
|
||||||
|
|
||||||
const SameProcessInputStreamParams& params =
|
|
||||||
aParams.get_SameProcessInputStreamParams();
|
|
||||||
|
|
||||||
stream = dont_AddRef(
|
|
||||||
reinterpret_cast<nsIInputStream*>(params.addRefedInputStream()));
|
|
||||||
MOZ_ASSERT(stream);
|
|
||||||
|
|
||||||
return stream.forget();
|
|
||||||
}
|
|
||||||
|
|
||||||
case InputStreamParams::TSlicedInputStreamParams:
|
case InputStreamParams::TSlicedInputStreamParams:
|
||||||
serializable = new SlicedInputStream();
|
serializable = new SlicedInputStream();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user