summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/WebrtcGlobal.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/media/webrtc/WebrtcGlobal.h
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/webrtc/WebrtcGlobal.h')
-rw-r--r--dom/media/webrtc/WebrtcGlobal.h33
1 files changed, 11 insertions, 22 deletions
diff --git a/dom/media/webrtc/WebrtcGlobal.h b/dom/media/webrtc/WebrtcGlobal.h
index d610ee5d10..e9ec2ced51 100644
--- a/dom/media/webrtc/WebrtcGlobal.h
+++ b/dom/media/webrtc/WebrtcGlobal.h
@@ -8,6 +8,7 @@
#include "WebrtcIPCTraits.h"
#include "ipc/EnumSerializer.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
+#include "mozilla/dom/BindingIPCUtils.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/RTCDataChannelBinding.h"
#include "mozilla/dom/RTCStatsReportBinding.h"
@@ -62,30 +63,22 @@ namespace IPC {
template <>
struct ParamTraits<mozilla::dom::RTCStatsType>
- : public ContiguousEnumSerializer<mozilla::dom::RTCStatsType,
- mozilla::dom::RTCStatsType::Codec,
- mozilla::dom::RTCStatsType::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::RTCStatsType> {};
template <>
struct ParamTraits<mozilla::dom::RTCStatsIceCandidatePairState>
- : public ContiguousEnumSerializer<
- mozilla::dom::RTCStatsIceCandidatePairState,
- mozilla::dom::RTCStatsIceCandidatePairState::Frozen,
- mozilla::dom::RTCStatsIceCandidatePairState::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::RTCStatsIceCandidatePairState> {};
template <>
struct ParamTraits<mozilla::dom::RTCIceCandidateType>
- : public ContiguousEnumSerializer<
- mozilla::dom::RTCIceCandidateType,
- mozilla::dom::RTCIceCandidateType::Host,
- mozilla::dom::RTCIceCandidateType::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::RTCIceCandidateType> {};
template <>
struct ParamTraits<mozilla::dom::RTCBundlePolicy>
- : public ContiguousEnumSerializer<
- mozilla::dom::RTCBundlePolicy,
- mozilla::dom::RTCBundlePolicy::Balanced,
- mozilla::dom::RTCBundlePolicy::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::RTCBundlePolicy> {
+};
DEFINE_IPC_SERIALIZER_WITH_FIELDS(mozilla::dom::RTCIceServerInternal, mUrls,
mCredentialProvided, mUserNameProvided);
@@ -218,10 +211,8 @@ DEFINE_IPC_SERIALIZER_WITH_FIELDS(mozilla::dom::RTCDataChannelStats, mId,
template <>
struct ParamTraits<mozilla::dom::RTCDataChannelState>
- : public ContiguousEnumSerializer<
- mozilla::dom::RTCDataChannelState,
- mozilla::dom::RTCDataChannelState::Connecting,
- mozilla::dom::RTCDataChannelState::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::RTCDataChannelState> {};
DEFINE_IPC_SERIALIZER_WITH_FIELDS(mozilla::dom::RTCCodecStats, mTimestamp,
mType, mId, mPayloadType, mCodecType,
@@ -230,9 +221,7 @@ DEFINE_IPC_SERIALIZER_WITH_FIELDS(mozilla::dom::RTCCodecStats, mTimestamp,
template <>
struct ParamTraits<mozilla::dom::RTCCodecType>
- : public ContiguousEnumSerializer<mozilla::dom::RTCCodecType,
- mozilla::dom::RTCCodecType::Encode,
- mozilla::dom::RTCCodecType::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::RTCCodecType> {};
} // namespace IPC
#endif // _WEBRTC_GLOBAL_H_