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

#ifndef PWebBrowserPersistSerializeParent_h
#define PWebBrowserPersistSerializeParent_h

#include "mozilla/PWebBrowserPersistSerialize.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "base/id_map.h"
#include "mozilla/ipc/MessageChannel.h"

namespace mozilla {
class PWebBrowserPersistDocumentParent;
} // namespace mozilla
namespace mozilla {
class PWebBrowserPersistDocumentChild;
} // namespace mozilla

namespace mozilla {
class PWebBrowserPersistDocumentParent;
} // namespace mozilla

namespace mozilla {


class PWebBrowserPersistSerializeParent :
    public mozilla::ipc::IProtocol
{
    friend class mozilla::PWebBrowserPersistDocumentParent;

protected:
    typedef mozilla::ipc::ActorHandle ActorHandle;
    template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
    typedef mozilla::ipc::FileDescriptor FileDescriptor;
    typedef base::ProcessId ProcessId;
    typedef mozilla::ipc::ProtocolId ProtocolId;
    typedef mozilla::ipc::Shmem Shmem;
    typedef mozilla::ipc::Transport Transport;
    typedef mozilla::ipc::TransportDescriptor TransportDescriptor;
    typedef mozilla::PWebBrowserPersistDocumentParent PWebBrowserPersistDocumentParent;
    typedef mozilla::PWebBrowserPersistDocumentChild PWebBrowserPersistDocumentChild;

    typedef PWebBrowserPersistSerialize::State State;

    virtual bool
    RecvWriteData(nsTArray<uint8_t>&& aData) = 0;
    virtual bool
    Recv__delete__(
            const nsCString& aContentType,
            const nsresult& aStatus);

    virtual void
    ActorDestroy(ActorDestroyReason aWhy) = 0;

public:
    typedef mozilla::ipc::IProtocol ProtocolBase;
    typedef IPC::Message Message;
    typedef mozilla::ipc::MessageChannel Channel;
    typedef mozilla::ipc::IProtocol ChannelListener;
    typedef base::ProcessHandle ProcessHandle;
    typedef mozilla::ipc::MessageChannel MessageChannel;
    typedef mozilla::ipc::SharedMemory SharedMemory;
    typedef mozilla::ipc::Trigger Trigger;

public:
    MOZ_IMPLICIT PWebBrowserPersistSerializeParent();

    virtual ~PWebBrowserPersistSerializeParent();

    PWebBrowserPersistDocumentParent*
    Manager() const;

    PWebBrowserPersistSerialize::State
    state();

    virtual void
    RemoveManagee(
            int32_t aProtocolId,
            ProtocolBase* aListener);

    virtual Result
    OnMessageReceived(const Message& msg__);

    virtual Result
    OnMessageReceived(
            const Message& msg__,
            Message*& reply__);

    virtual Result
    OnCallReceived(
            const Message& msg__,
            Message*& reply__);

    int32_t
    GetProtocolTypeId();

private:
    virtual const char*
    ProtocolName() const;

    void
    DestroySubtree(ActorDestroyReason why);

    void
    DeallocSubtree();

    template<typename T>
    void
    Write(
            const T& v__,
            Message* msg__)
    {
        IPC::WriteParam(msg__, v__);
    }

    template<typename T>
    bool
    Read(
            T* v__,
            const Message* msg__,
            PickleIterator* iter__)
    {
        return IPC::ReadParam(msg__, iter__, v__);
    }

    void
    Write(
            const PWebBrowserPersistSerializeParent* v__,
            Message* msg__,
            bool nullable__);

    MOZ_MUST_USE bool
    Read(
            PWebBrowserPersistSerializeParent** v__,
            const Message* msg__,
            PickleIterator* iter__,
            bool nullable__);

    State mState;
};


} // namespace mozilla

#if 0

//-----------------------------------------------------------------------------
// Skeleton implementation of abstract actor class

// Header file contents
namespace mozilla {
class WebBrowserPersistSerializeParent :
    public PWebBrowserPersistSerializeParent
{
    virtual bool
    RecvWriteData(nsTArray<uint8_t>&& aData);

    virtual void
    ActorDestroy(ActorDestroyReason aWhy);

    MOZ_IMPLICIT WebBrowserPersistSerializeParent();
    virtual ~WebBrowserPersistSerializeParent();
};
} // namespace mozilla


// C++ file contents
namespace mozilla {
bool
WebBrowserPersistSerializeParent::RecvWriteData(nsTArray<uint8_t>&& aData)
{
    return false;
}

void
WebBrowserPersistSerializeParent::ActorDestroy(ActorDestroyReason aWhy)
{
}

MOZ_IMPLICIT WebBrowserPersistSerializeParent::WebBrowserPersistSerializeParent()
{
    MOZ_COUNT_CTOR(WebBrowserPersistSerializeParent);
}

MOZ_IMPLICIT WebBrowserPersistSerializeParent::~WebBrowserPersistSerializeParent()
{
    MOZ_COUNT_DTOR(WebBrowserPersistSerializeParent);
}

} // namespace mozilla
#endif // if 0

#endif // ifndef PWebBrowserPersistSerializeParent_h
