//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PCookieStore_h
#define PCookieStore_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 "mozilla/ipc/PBackgroundSharedTypes.h"
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct CookieStoreGetItem|
//
namespace mozilla {
namespace dom {
class CookieStoreGetItem 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
CookieStoreGetItem() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT CookieStoreGetItem(
const nsCString& _name,
const nsCString& _value) :
name_(_name),
value_(_value)
{
}
MOZ_IMPLICIT CookieStoreGetItem(
nsCString&& _name,
nsCString&& _value) :
name_(std::move(_name)),
value_(std::move(_value))
{
}
nsCString&
name()
{
return name_;
}
const nsCString&
name() const
{
return name_;
}
nsCString&
value()
{
return value_;
}
const nsCString&
value() const
{
return value_;
}
private:
::mozilla::ipc::IPDLStructMember<nsCString> name_;
::mozilla::ipc::IPDLStructMember<nsCString> value_;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::CookieStoreGetItem>
{
typedef ::mozilla::dom::CookieStoreGetItem paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct CookieSubscription|
//
namespace mozilla {
namespace dom {
class CookieSubscription 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
CookieSubscription() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT CookieSubscription(
const mozilla::Maybe<nsString>& _name,
const nsString& _url) :
name_(_name),
url_(_url)
{
}
MOZ_IMPLICIT CookieSubscription(
mozilla::Maybe<nsString>&& _name,
nsString&& _url) :
name_(std::move(_name)),
url_(std::move(_url))
{
}
mozilla::Maybe<nsString>&
name()
{
return name_;
}
const mozilla::Maybe<nsString>&
name() const
{
return name_;
}
nsString&
url()
{
return url_;
}
const nsString&
url() const
{
return url_;
}
private:
::mozilla::ipc::IPDLStructMember<mozilla::Maybe<nsString>> name_;
::mozilla::ipc::IPDLStructMember<nsString> url_;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::CookieSubscription>
{
typedef ::mozilla::dom::CookieSubscription paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct CookieStoreResult|
//
namespace mozilla {
namespace dom {
class CookieStoreResult final
{
private:
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
CookieStoreResult() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT CookieStoreResult(
const bool& _success,
const bool& _waitForNotification) :
success_(_success),
waitForNotification_(_waitForNotification)
{
}
MOZ_IMPLICIT CookieStoreResult(
bool&& _success,
bool&& _waitForNotification) :
success_(std::move(_success)),
waitForNotification_(std::move(_waitForNotification))
{
}
bool&
success()
{
return success_;
}
const bool&
success() const
{
return success_;
}
bool&
waitForNotification()
{
return waitForNotification_;
}
const bool&
waitForNotification() const
{
return waitForNotification_;
}
private:
::mozilla::ipc::IPDLStructMember<bool> success_;
::mozilla::ipc::IPDLStructMember<bool> waitForNotification_;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::CookieStoreResult>
{
typedef ::mozilla::dom::CookieStoreResult 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 PCookieStoreParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PCookieStoreChild;
} // namespace dom
} // namespace mozilla
//-----------------------------------------------------------------------------
// Code common to PCookieStoreChild and PCookieStoreParent
//
namespace mozilla {
namespace dom {
namespace PCookieStore {
nsresult
CreateEndpoints(
mozilla::ipc::EndpointProcInfo aParentDestInfo,
mozilla::ipc::EndpointProcInfo aChildDestInfo,
mozilla::ipc::Endpoint<::mozilla::dom::PCookieStoreParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::dom::PCookieStoreChild>* aChild);
enum MessageType {
PCookieStoreStart = PCookieStoreMsgStart << 16,
Msg_GetRequest__ID,
Reply_GetRequest__ID,
Msg_SetRequest__ID,
Reply_SetRequest__ID,
Msg_DeleteRequest__ID,
Reply_DeleteRequest__ID,
Msg_GetSubscriptionsRequest__ID,
Reply_GetSubscriptionsRequest__ID,
Msg_SubscribeOrUnsubscribeRequest__ID,
Reply_SubscribeOrUnsubscribeRequest__ID,
Msg_Close__ID,
Msg___delete____ID,
Reply___delete____ID,
PCookieStoreEnd
};
mozilla::UniquePtr<IPC::Message>
Msg_GetRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_GetRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_SetRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_SetRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_DeleteRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_DeleteRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_GetSubscriptionsRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_GetSubscriptionsRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_SubscribeOrUnsubscribeRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_SubscribeOrUnsubscribeRequest(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_Close(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg___delete__(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply___delete__(IPC::Message::routeid_t routingId);
} // namespace PCookieStore
} // namespace dom
} // namespace mozilla
#endif // ifndef PCookieStore_h