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

#ifndef PHttpChannel_h
#define PHttpChannel_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/InputStreamParams.h"
#include "mozilla/ipc/PBackgroundSharedTypes.h"
#include "mozilla/net/NeckoChannelParams.h"
#include "mozilla/dom/IPCServiceWorkerDescriptor.h"
#include "mozilla/ipc/IPCStream.h"
#include "mozilla/net/HttpChannelParams.h"

namespace mozilla {
namespace net {
class PHttpChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpChannelChild;
} // namespace net
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PHttpChannelChild and PHttpChannelParent
//
namespace mozilla {
namespace net {
namespace PHttpChannel {

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

enum MessageType {
    PHttpChannelStart = PHttpChannelMsgStart << 16,
    Msg_SetClassOfService__ID,
    Msg_Suspend__ID,
    Msg_Resume__ID,
    Msg_Cancel__ID,
    Msg_Redirect2Verify__ID,
    Msg_DocumentChannelCleanup__ID,
    Msg_RemoveCorsPreflightCacheEntry__ID,
    Msg_SetCookies__ID,
    Msg_DeletingChannel__ID,
    Msg_OpenOriginalCacheInputStream__ID,
    Msg_BytesRead__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_FailedAsyncOpen__ID,
    Msg_OnStartRequestSent__ID,
    Msg_Redirect1Begin__ID,
    Msg_Redirect3Complete__ID,
    Msg_RedirectFailed__ID,
    Msg_ReportSecurityMessage__ID,
    Msg_ReportLNAToConsole__ID,
    Msg_DeleteSelf__ID,
    Msg_LogBlockedCORSRequest__ID,
    Msg_LogMimeTypeMismatch__ID,
    Msg_OriginalCacheInputStreamAvailable__ID,
    Msg_SetPriority__ID,
    PHttpChannelEnd
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



} // namespace PHttpChannel
} // namespace net
} // namespace mozilla

#endif // ifndef PHttpChannel_h
