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

#ifndef PIdleScheduler_h
#define PIdleScheduler_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 ipc {
class PIdleSchedulerParent;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace ipc {
class PIdleSchedulerChild;
} // namespace ipc
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PIdleSchedulerChild and PIdleSchedulerParent
//
namespace mozilla {
namespace ipc {
namespace PIdleScheduler {

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

enum MessageType {
    PIdleSchedulerStart = PIdleSchedulerMsgStart << 16,
    Msg_IdleTime__ID,
    Msg_InitForIdleUse__ID,
    Reply_InitForIdleUse__ID,
    Msg_RequestIdleTime__ID,
    Msg_IdleTimeUsed__ID,
    Msg_Schedule__ID,
    Msg_RunningPrioritizedOperation__ID,
    Msg_PrioritizedOperationDone__ID,
    Msg_RequestGC__ID,
    Reply_RequestGC__ID,
    Msg_StartedGC__ID,
    Msg_DoneGC__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PIdleSchedulerEnd
};

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

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

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

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

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_DoneGC(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 PIdleScheduler
} // namespace ipc
} // namespace mozilla

#endif // ifndef PIdleScheduler_h
