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

#ifndef PWebBrowserPersistResources_h
#define PWebBrowserPersistResources_h

#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "ipc/IPCMessageUtils.h"
#include "mozilla/RefPtr.h"
#include "nsStringGlue.h"
#include "nsTArray.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "nsTHashtable.h"
#include "mozilla/OperatorNewExtensions.h"

namespace mozilla {
class PWebBrowserPersistResourcesParent;
} // namespace mozilla
namespace mozilla {
class PWebBrowserPersistResourcesChild;
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PWebBrowserPersistResourcesChild and PWebBrowserPersistResourcesParent
//
namespace mozilla {
namespace PWebBrowserPersistResources {

nsresult
CreateEndpoints(
        base::ProcessId aParentDestPid,
        base::ProcessId aChildDestPid,
        mozilla::ipc::Endpoint<mozilla::PWebBrowserPersistResourcesParent>* aParent,
        mozilla::ipc::Endpoint<mozilla::PWebBrowserPersistResourcesChild>* aChild);

enum State {
    __Dead,
    __Null,
    __Error,
    __Dying,
    __Start = __Null
};

enum MessageType {
    PWebBrowserPersistResourcesStart = PWebBrowserPersistResourcesMsgStart << 16,
    Msg_VisitResource__ID,
    Msg_VisitDocument__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PWebBrowserPersistResourcesEnd
};

bool
Transition(
        mozilla::ipc::Trigger trigger,
        State* next);

IPC::Message*
Msg_VisitResource(int32_t routingId);

IPC::Message*
Msg_VisitDocument(int32_t routingId);

IPC::Message*
Msg___delete__(int32_t routingId);
IPC::Message*
Reply___delete__(int32_t routingId);



} // namespace PWebBrowserPersistResources
} // namespace mozilla

#endif // ifndef PWebBrowserPersistResources_h
