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

#ifndef IPCNavigationPreloadState_h
#define IPCNavigationPreloadState_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/ipc/IPDLStructMember.h"


//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct IPCNavigationPreloadState|
//
namespace mozilla {
namespace dom {
class IPCNavigationPreloadState final
{
private:
    typedef ::nsCString nsCString;

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

    MOZ_IMPLICIT IPCNavigationPreloadState(
            const bool& _enabled,
            const nsCString& _headerValue) :
        enabled_(_enabled),
        headerValue_(_headerValue)
    {
    }

    MOZ_IMPLICIT IPCNavigationPreloadState(
            bool&& _enabled,
            nsCString&& _headerValue) :
        enabled_(std::move(_enabled)),
        headerValue_(std::move(_headerValue))
    {
    }

    bool&
    enabled()
    {
        return enabled_;
    }
    const bool&
    enabled() const
    {
        return enabled_;
    }

    nsCString&
    headerValue()
    {
        return headerValue_;
    }
    const nsCString&
    headerValue() const
    {
        return headerValue_;
    }

private:
    ::mozilla::ipc::IPDLStructMember<bool> enabled_;
    ::mozilla::ipc::IPDLStructMember<nsCString> headerValue_;
};
} // namespace dom
} // namespace mozilla

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

#endif // ifndef IPCNavigationPreloadState_h
