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

#ifndef PFetchEventOp_h
#define PFetchEventOp_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/dom/ServiceWorkerOpArgs.h"
#include "mozilla/dom/FetchTypes.h"

namespace mozilla {
namespace dom {
class PFetchEventOpParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PFetchEventOpChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PFetchEventOpChild and PFetchEventOpParent
//
namespace mozilla {
namespace dom {
namespace PFetchEventOp {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::dom::PFetchEventOpParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::dom::PFetchEventOpChild>* aChild);

enum MessageType {
    PFetchEventOpStart = PFetchEventOpMsgStart << 16,
    Msg_PreloadResponse__ID,
    Msg_PreloadResponseTiming__ID,
    Msg_PreloadResponseEnd__ID,
    Msg_AsyncLog__ID,
    Msg_RespondWith__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PFetchEventOpEnd
};

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_RespondWith(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 PFetchEventOp
} // namespace dom
} // namespace mozilla

#endif // ifndef PFetchEventOp_h
