summaryrefslogtreecommitdiffstats
path: root/dom/media/mediasession/MediaSessionIPCUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/mediasession/MediaSessionIPCUtils.h')
-rw-r--r--dom/media/mediasession/MediaSessionIPCUtils.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/dom/media/mediasession/MediaSessionIPCUtils.h b/dom/media/mediasession/MediaSessionIPCUtils.h
index c44f4b4553..610b123b6c 100644
--- a/dom/media/mediasession/MediaSessionIPCUtils.h
+++ b/dom/media/mediasession/MediaSessionIPCUtils.h
@@ -6,6 +6,7 @@
#define DOM_MEDIA_MEDIASESSION_MEDIASESSIONIPCUTILS_H_
#include "ipc/EnumSerializer.h"
+#include "mozilla/dom/BindingIPCUtils.h"
#include "MediaMetadata.h"
#include "mozilla/dom/MediaSession.h"
#include "mozilla/dom/MediaSessionBinding.h"
@@ -71,12 +72,14 @@ struct ParamTraits<mozilla::dom::PositionState> {
WriteParam(aWriter, aParam.mDuration);
WriteParam(aWriter, aParam.mPlaybackRate);
WriteParam(aWriter, aParam.mLastReportedPlaybackPosition);
+ WriteParam(aWriter, aParam.mPositionUpdatedTime);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
if (!ReadParam(aReader, &(aResult->mDuration)) ||
!ReadParam(aReader, &(aResult->mPlaybackRate)) ||
- !ReadParam(aReader, &(aResult->mLastReportedPlaybackPosition))) {
+ !ReadParam(aReader, &(aResult->mLastReportedPlaybackPosition)) ||
+ !ReadParam(aReader, &(aResult->mPositionUpdatedTime))) {
return false;
}
return true;
@@ -85,17 +88,13 @@ struct ParamTraits<mozilla::dom::PositionState> {
template <>
struct ParamTraits<mozilla::dom::MediaSessionPlaybackState>
- : public ContiguousEnumSerializer<
- mozilla::dom::MediaSessionPlaybackState,
- mozilla::dom::MediaSessionPlaybackState::None,
- mozilla::dom::MediaSessionPlaybackState::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::MediaSessionPlaybackState> {};
template <>
struct ParamTraits<mozilla::dom::MediaSessionAction>
- : public ContiguousEnumSerializer<
- mozilla::dom::MediaSessionAction,
- mozilla::dom::MediaSessionAction::Play,
- mozilla::dom::MediaSessionAction::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::MediaSessionAction> {};
} // namespace IPC