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

#ifndef PHttpBackgroundChannel_h
#define PHttpBackgroundChannel_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/net/NeckoChannelParams.h"
#include "mozilla/net/HttpChannelParams.h"
#include "mozilla/dom/PURLClassifierInfo.h"

namespace mozilla {
namespace net {
class PHttpBackgroundChannelParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PHttpBackgroundChannelChild;
} // namespace net
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PHttpBackgroundChannelChild and PHttpBackgroundChannelParent
//
namespace mozilla {
namespace net {
namespace PHttpBackgroundChannel {

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

enum MessageType {
    PHttpBackgroundChannelStart = PHttpBackgroundChannelMsgStart << 16,
    Msg_OnStartRequest__ID,
    Msg_OnTransportAndData__ID,
    Msg_OnStopRequest__ID,
    Msg_OnConsoleReport__ID,
    Msg_OnProgress__ID,
    Msg_OnStatus__ID,
    Msg_OnAfterLastPart__ID,
    Msg_NotifyClassificationFlags__ID,
    Msg_SetClassifierMatchedInfo__ID,
    Msg_SetClassifierMatchedTrackingInfo__ID,
    Msg_AttachStreamFilter__ID,
    Msg_DetachStreamFilters__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PHttpBackgroundChannelEnd
};

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

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

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

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

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

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

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_DetachStreamFilters(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 PHttpBackgroundChannel
} // namespace net
} // namespace mozilla

#endif // ifndef PHttpBackgroundChannel_h
