//
// Automatically generated by ipdlc.
// Edit at your own risk
//

#ifndef PRemoteLazyInputStream_h
#define PRemoteLazyInputStream_h

#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"
#include "mozilla/ipc/IPCStream.h"

namespace mozilla {
class PRemoteLazyInputStreamParent;
} // namespace mozilla
namespace mozilla {
class PRemoteLazyInputStreamChild;
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PRemoteLazyInputStreamChild and PRemoteLazyInputStreamParent
//
namespace mozilla {
namespace PRemoteLazyInputStream {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::PRemoteLazyInputStreamParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::PRemoteLazyInputStreamChild>* aChild);

nsresult
CreateEndpoints(
        mozilla::ipc::Endpoint<::mozilla::PRemoteLazyInputStreamParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::PRemoteLazyInputStreamChild>* aChild);

enum MessageType {
    PRemoteLazyInputStreamStart = PRemoteLazyInputStreamMsgStart << 16,
    Msg_Clone__ID,
    Msg_StreamNeeded__ID,
    Reply_StreamNeeded__ID,
    Msg_LengthNeeded__ID,
    Reply_LengthNeeded__ID,
    Msg_Goodbye__ID,
    PRemoteLazyInputStreamEnd
};

mozilla::UniquePtr<IPC::Message>
Msg_Clone(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_StreamNeeded(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_StreamNeeded(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_LengthNeeded(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_LengthNeeded(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_Goodbye(IPC::Message::routeid_t routingId);



} // namespace PRemoteLazyInputStream
} // namespace mozilla

#endif // ifndef PRemoteLazyInputStream_h
