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

#ifndef CrashReporterInitArgs_h
#define CrashReporterInitArgs_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"

// Headers for typedefs
#include "mozilla/dom/NativeThreadId.h"
#include "mozilla/ipc/IPDLStructMember.h"


//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct CrashReporterInitArgs|
//
namespace CrashReporter {
class CrashReporterInitArgs final
{
private:
    typedef ::mozilla::dom::NativeThreadId NativeThreadId;

public:
#ifdef __clang__
#  pragma clang diagnostic push
#  if __has_warning("-Wdefaulted-function-deleted")
#    pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
#  endif
#endif
    CrashReporterInitArgs() = default;
#ifdef __clang__
#  pragma clang diagnostic pop
#endif

    MOZ_IMPLICIT CrashReporterInitArgs(const NativeThreadId& _threadId) :
        threadId_(_threadId)
    {
    }

    MOZ_IMPLICIT CrashReporterInitArgs(NativeThreadId&& _threadId) :
        threadId_(std::move(_threadId))
    {
    }

    NativeThreadId&
    threadId()
    {
        return threadId_;
    }
    const NativeThreadId&
    threadId() const
    {
        return threadId_;
    }

private:
    ::mozilla::ipc::IPDLStructMember<NativeThreadId> threadId_;
};
} // namespace CrashReporter

namespace IPC {
template<>
struct ParamTraits <::CrashReporter::CrashReporterInitArgs>
{
    typedef ::CrashReporter::CrashReporterInitArgs paramType;
    static void
    Write(
            IPC::MessageWriter* aWriter,
            const paramType& aVar);
    static IPC::ReadResult<paramType>
    Read(IPC::MessageReader* aReader);
};
} // namespace IPC

#endif // ifndef CrashReporterInitArgs_h
