mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1359718 - Get rid of PBlob - part 6 - removed unused inputStream params, r=smaug
This commit is contained in:
parent
10c6acd1a4
commit
bf4efb28a8
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user