Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef IPCIdentityCredential_h
#define IPCIdentityCredential_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 IPCIdentityCredential|
//
namespace mozilla {
namespace dom {
class IPCIdentityCredential final
{
private:
typedef ::nsString nsString;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
IPCIdentityCredential() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT IPCIdentityCredential(
const nsString& _id,
const nsString& _type,
const nsString& _token) :
id_(_id),
type_(_type),
token_(_token)
{
}
MOZ_IMPLICIT IPCIdentityCredential(
nsString&& _id,
nsString&& _type,
nsString&& _token) :
id_(std::move(_id)),
type_(std::move(_type)),
token_(std::move(_token))
{
}
nsString&
id()
{
return id_;
}
const nsString&
id() const
{
return id_;
}
nsString&
type()
{
return type_;
}
const nsString&
type() const
{
return type_;
}
nsString&
token()
{
return token_;
}
const nsString&
token() const
{
return token_;
}
private:
::mozilla::ipc::IPDLStructMember<nsString> id_;
::mozilla::ipc::IPDLStructMember<nsString> type_;
::mozilla::ipc::IPDLStructMember<nsString> token_;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::IPCIdentityCredential>
{
typedef ::mozilla::dom::IPCIdentityCredential paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef IPCIdentityCredential_h