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

#ifndef PGMPVideoEncoder_h
#define PGMPVideoEncoder_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/gmp/GMPTypes.h"

namespace mozilla {
namespace gmp {
class PGMPVideoEncoderParent;
} // namespace gmp
} // namespace mozilla
namespace mozilla {
namespace gmp {
class PGMPVideoEncoderChild;
} // namespace gmp
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PGMPVideoEncoderChild and PGMPVideoEncoderParent
//
namespace mozilla {
namespace gmp {
namespace PGMPVideoEncoder {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::gmp::PGMPVideoEncoderParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::gmp::PGMPVideoEncoderChild>* aChild);

enum MessageType {
    PGMPVideoEncoderStart = PGMPVideoEncoderMsgStart << 16,
    Msg_InitEncode__ID,
    Msg_GiveShmem__ID,
    Msg_Encode__ID,
    Msg_SetChannelParameters__ID,
    Msg_SetRates__ID,
    Msg_SetPeriodicKeyFrames__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_ReturnShmem__ID,
    Msg_EncodedShmem__ID,
    Msg_EncodedData__ID,
    Msg_DroppedFrame__ID,
    Msg_Error__ID,
    Msg_Shutdown__ID,
    PGMPVideoEncoderEnd
};

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_SetPeriodicKeyFrames(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_ReturnShmem(IPC::Message::routeid_t routingId);

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

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

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

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

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



} // namespace PGMPVideoEncoder
} // namespace gmp
} // namespace mozilla

#endif // ifndef PGMPVideoEncoder_h
