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

#ifndef PWebSocket_h
#define PWebSocket_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"
#include "mozilla/net/NeckoChannelParams.h"

namespace mozilla {
namespace net {
class PWebSocketParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PWebSocketChild;
} // namespace net
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PWebSocketChild and PWebSocketParent
//
namespace mozilla {
namespace net {
namespace PWebSocket {

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

enum MessageType {
    PWebSocketStart = PWebSocketMsgStart << 16,
    Msg_AsyncOpen__ID,
    Msg_Close__ID,
    Msg_SendMsg__ID,
    Msg_SendBinaryMsg__ID,
    Msg_SendBinaryStream__ID,
    Msg_DeleteSelf__ID,
    Msg_OnStart__ID,
    Msg_OnStop__ID,
    Msg_OnMessageAvailable__ID,
    Msg_OnBinaryMessageAvailable__ID,
    Msg_OnAcknowledge__ID,
    Msg_OnServerClose__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PWebSocketEnd
};

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

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

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

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

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

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

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_OnServerClose(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);



} // namespace PWebSocket
} // namespace net
} // namespace mozilla

#endif // ifndef PWebSocket_h
