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

#ifndef PBackgroundDataBridge_h
#define PBackgroundDataBridge_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/HttpChannelParams.h"
#include "mozilla/net/NeckoChannelParams.h"

namespace mozilla {
namespace net {
class PBackgroundDataBridgeParent;
} // namespace net
} // namespace mozilla
namespace mozilla {
namespace net {
class PBackgroundDataBridgeChild;
} // namespace net
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PBackgroundDataBridgeChild and PBackgroundDataBridgeParent
//
namespace mozilla {
namespace net {
namespace PBackgroundDataBridge {

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

nsresult
CreateEndpoints(
        mozilla::ipc::Endpoint<::mozilla::net::PBackgroundDataBridgeParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::net::PBackgroundDataBridgeChild>* aChild);

enum MessageType {
    PBackgroundDataBridgeStart = PBackgroundDataBridgeMsgStart << 16,
    Msg_OnTransportAndData__ID,
    Msg_OnStopRequest__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PBackgroundDataBridgeEnd
};

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



} // namespace PBackgroundDataBridge
} // namespace net
} // namespace mozilla

#endif // ifndef PBackgroundDataBridge_h
