Bug 1359718 - Get rid of PBlob - part 6 - removed unused inputStream params, r=smaug

This commit is contained in:
Andrea Marchesini 2017-05-23 18:07:18 +02:00
parent 10c6acd1a4
commit bf4efb28a8
2 changed files with 0 additions and 34 deletions

View File

@ -43,19 +43,6 @@ struct MultiplexInputStreamParams
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
{
InputStreamParams stream;
@ -78,8 +65,6 @@ union InputStreamParams
BufferedInputStreamParams;
MIMEInputStreamParams;
MultiplexInputStreamParams;
RemoteInputStreamParams;
SameProcessInputStreamParams;
SlicedInputStreamParams;
IPCBlobInputStreamParams;
};

View File

@ -99,25 +99,6 @@ InputStreamHelper::DeserializeInputStream(const InputStreamParams& aParams,
serializable = do_CreateInstance(kMultiplexInputStreamCID);
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:
serializable = new SlicedInputStream();
break;