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

#ifndef PAltDataOutputStream_h
#define PAltDataOutputStream_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"

namespace mozilla {
namespace net {
class PAltDataOutputStreamParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PAltDataOutputStreamChild;
} // namespace net
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PAltDataOutputStreamChild and PAltDataOutputStreamParent
//
namespace mozilla {
namespace net {
namespace PAltDataOutputStream {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::net::PAltDataOutputStreamParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::net::PAltDataOutputStreamChild>* aChild);

enum MessageType {
    PAltDataOutputStreamStart = PAltDataOutputStreamMsgStart << 16,
    Msg_WriteData__ID,
    Msg_Close__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_Error__ID,
    Msg_DeleteSelf__ID,
    PAltDataOutputStreamEnd
};

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

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

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

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

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



} // namespace PAltDataOutputStream
} // namespace net
} // namespace mozilla

#endif // ifndef PAltDataOutputStream_h
