void nsBufferedInputStream::Write(IPC::Message *aMsg) { using IPC::WriteParam; WriteParam(aMsg, mBufferSize); IPC::InputStream inputStream(Source()); WriteParam(aMsg, inputStream); }
void nsFileInputStream::Write(IPC::Message *aMsg) { using IPC::WriteParam; nsCString path; mFile->GetNativePath(path); WriteParam(aMsg, path); bool followLinks; mFile->GetFollowLinks(&followLinks); WriteParam(aMsg, followLinks); WriteParam(aMsg, mBehaviorFlags); }
void nsMIMEInputStream::Write(IPC::Message *aMsg) { using IPC::WriteParam; WriteParam(aMsg, mHeaders); WriteParam(aMsg, mContentLength); WriteParam(aMsg, mStartedReading); IPC::InputStream inputStream(mData); WriteParam(aMsg, inputStream); WriteParam(aMsg, mAddContentLength); }
void nsMultiplexInputStream::Write(IPC::Message *aMsg) { using IPC::WriteParam; PRUint32 count = mStreams.Count(); WriteParam(aMsg, count); for (PRUint32 i = 0; i < count; i++) { IPC::InputStream inputStream(mStreams.ObjectAt(i)); WriteParam(aMsg, inputStream); } WriteParam(aMsg, mCurrentStream); WriteParam(aMsg, mStartedReadingCurrent); WriteParam(aMsg, mStatus); }
void nsStringInputStream::Write(IPC::Message *aMsg) { using IPC::WriteParam; nsCAutoString value; GetData(value); WriteParam(aMsg, value); }
void nsPartialFileInputStream::Write(IPC::Message *aMsg) { using IPC::WriteParam; // Write our members first. WriteParam(aMsg, mStart); WriteParam(aMsg, mLength); // XXX This isn't really correct, we should probably send this too. However, // it doesn't look like nsFileInputStream deals with sending a // partially-consumed stream either, so... if (mPosition) { NS_WARNING("No support for sending a partially-consumed input stream!"); } // Now run base class serialization. nsFileInputStream::Write(aMsg); }
void nsStringInputStream::Write(IPC::Message *aMsg) { #ifdef MOZ_IPC using IPC::WriteParam; nsCAutoString value; GetData(value); WriteParam(aMsg, value); #endif }