Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PURLClassifierInfo_h
#define PURLClassifierInfo_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 ClassifierInfo|
//
namespace mozilla {
namespace dom {
class ClassifierInfo 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
ClassifierInfo() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT ClassifierInfo(
const nsCString& _list,
const nsCString& _provider,
const nsCString& _fullhash) :
list_(_list),
provider_(_provider),
fullhash_(_fullhash)
{
}
MOZ_IMPLICIT ClassifierInfo(
nsCString&& _list,
nsCString&& _provider,
nsCString&& _fullhash) :
list_(std::move(_list)),
provider_(std::move(_provider)),
fullhash_(std::move(_fullhash))
{
}
nsCString&
list()
{
return list_;
}
const nsCString&
list() const
{
return list_;
}
nsCString&
provider()
{
return provider_;
}
const nsCString&
provider() const
{
return provider_;
}
nsCString&
fullhash()
{
return fullhash_;
}
const nsCString&
fullhash() const
{
return fullhash_;
}
private:
::mozilla::ipc::IPDLStructMember<nsCString> list_;
::mozilla::ipc::IPDLStructMember<nsCString> provider_;
::mozilla::ipc::IPDLStructMember<nsCString> fullhash_;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::ClassifierInfo>
{
typedef ::mozilla::dom::ClassifierInfo paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PURLClassifierInfo_h