Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PURLClassifierLocal_h
#define PURLClassifierLocal_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"
#include "nsIURI.h"
#include "mozilla/dom/PURLClassifierInfo.h"
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct URLClassifierLocalResult|
//
namespace mozilla {
namespace dom {
class URLClassifierLocalResult final
{
private:
typedef ::nsIURI nsIURI;
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
URLClassifierLocalResult() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT URLClassifierLocalResult(
nsIURI* _uri,
const nsCString& _featureName,
const nsCString& _matchingList) :
uri_(_uri),
featureName_(_featureName),
matchingList_(_matchingList)
{
}
MOZ_IMPLICIT URLClassifierLocalResult(
RefPtr<nsIURI>&& _uri,
nsCString&& _featureName,
nsCString&& _matchingList) :
uri_(std::move(_uri)),
featureName_(std::move(_featureName)),
matchingList_(std::move(_matchingList))
{
}
RefPtr<nsIURI>&
uri()
{
return uri_;
}
nsIURI*
uri() const
{
return uri_;
}
nsCString&
featureName()
{
return featureName_;
}
const nsCString&
featureName() const
{
return featureName_;
}
nsCString&
matchingList()
{
return matchingList_;
}
const nsCString&
matchingList() const
{
return matchingList_;
}
private:
::mozilla::ipc::IPDLStructMember<RefPtr<nsIURI>> uri_;
::mozilla::ipc::IPDLStructMember<nsCString> featureName_;
::mozilla::ipc::IPDLStructMember<nsCString> matchingList_;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::URLClassifierLocalResult>
{
typedef ::mozilla::dom::URLClassifierLocalResult paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
namespace mozilla {
namespace dom {
class PURLClassifierLocalParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PURLClassifierLocalChild;
} // namespace dom
} // namespace mozilla
//-----------------------------------------------------------------------------
// Code common to PURLClassifierLocalChild and PURLClassifierLocalParent
//
namespace mozilla {
namespace dom {
namespace PURLClassifierLocal {
nsresult
CreateEndpoints(
base::ProcessId aParentDestPid,
base::ProcessId aChildDestPid,
mozilla::ipc::Endpoint<::mozilla::dom::PURLClassifierLocalParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::dom::PURLClassifierLocalChild>* aChild);
enum MessageType {
PURLClassifierLocalStart = PURLClassifierLocalMsgStart << 16,
Msg___delete____ID,
Reply___delete____ID,
PURLClassifierLocalEnd
};
mozilla::UniquePtr<IPC::Message>
Msg___delete__(int32_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply___delete__(int32_t routingId);
} // namespace PURLClassifierLocal
} // namespace dom
} // namespace mozilla
#endif // ifndef PURLClassifierLocal_h